Skip to content

softask-app/lib-go-password

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Password Type

badge Go Report Card codecov

A simple string type that masks its value when printed or encoded.

func main() {
	foo := passwd.Password("Hello World")
	fmt.Println(foo)
	// Output: ***

	enc := json.NewEncoder(os.Stdout)
	enc.Encode(foo)
	// Output: "***"
}