Skip to content

rbranson/camo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!"
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages