Skip to content

matsuri-tech/json-hidden-marshal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-hidden-marshal

Example

type User struct {
    Name     string `json:"name"`
    Password string `json:"password" hidden:"mask"` // -> masked like "*****", preserving the string length 
    Hidden   int    `json:"hidden" hidden:"-"`
    Hidden2  int    `json:"hidden" hidden:"true"` // hidden:"-" or hidden:"true" to skip
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages