Categorygithub.com/notwithering/memory
repositorypackage
0.0.0-20240607060204-bca31187bede
Repository: https://github.com/notwithering/memory.git
Documentation: pkg.go.dev

# README

Memory

MIT License

Memory is a simple package that provides helper functions to interact with the computer's memory from go.

Example

package main

import (
	"fmt"

	"github.com/notwithering/memory"
)

func main() {
	// data you do not want to be stored into memory for long
	var info string = "my super secret password"

	// zero out the data
	memory.Zero(&info)

	// there is no data to even print
	fmt.Println(info)
}