I Want Process-Aware Types
sean.barag.org
sean.barag.org
nope. just use a custom String method:
func (UserSession) String() string {
return "hello world"
}
or a custom type: type UserSession struct {
Username string
pwHash password
}
type password string
func (password) String() string {
return "[redact]"
}