MCPcopy
hub / github.com/nats-io/nats.go / wipeSlice

Function wipeSlice

nats.go:6612–6616  ·  view source on GitHub ↗

Just wipe slice with 'x', for clearing contents of creds or nkey seed file.

(buf []byte)

Source from the content-addressed store, hash-verified

6610
6611// Just wipe slice with 'x', for clearing contents of creds or nkey seed file.
6612func wipeSlice(buf []byte) {
6613 for i := range buf {
6614 buf[i] = 'x'
6615 }
6616}
6617
6618func userFromFile(userFile string) (string, error) {
6619 path, err := expandPath(userFile)

Callers 2

userFromFileFunction · 0.85
nkeyPairFromSeedFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected