repositorypackage
0.0.0-20240514174437-9bd57a49cfe2
Repository: https://github.com/rbranson/camo.git
Documentation: pkg.go.dev
# README
camo
Camo is a Go package that "camouflages" a string or byte slice by making it opaque to reflection. This mostly protects the data from being exposed by reflection or by being printed to the console, log files, etc.
For the full documentation, see the GoDoc.
Usage
package main
import (
"fmt"
"github.com/rbranson/camo"
)
func main() {
s := camo.Obscure("hello, world!")
fmt.Println(s) // Output: "camouflaged"
fmt.Println(s.String()) // Output: "hello, world!"
}