This has been changed into a more broad repo here
Zero is a very simple package that takes any input of any data type and zeros it from memory, making it unusable and unreadable in memory.
This is especially useful for when you're dealing with sensitive data that needs to be quickly removed from memory.
This package also provides plenty of tests to ensure that each function works as expected.
package main
import (
"fmt""github.com/notwithering/zero"
)
funcmain() {
// data you do not want to be stored into memory for longvarinfostring="my super secret password"// zero out the datazero.Zero(&info)
// there is no data to even printfmt.Println(info)
}