In server-side Go code I acquire private keys and use them to sign assertions, but I don't want to leave them lying around in memory. Is the following sane?
var private ed25519.PrivateKey
// acquire and use the private key
// now I want to overwrite it so it's not lurking in memory
privKeyBytes := []byte(private)
_, _ = rand.Read(privKeyBytes)