type TestObject struct {
kind string `json:\"kind\"`
id string `json:\"id, omitempty\"`
name string `json:\"name\"`
email string `json:\"email\"`
Examples
var aName // private
var BigBro // public (exported)
var 123abc // illegal
func (p *Person) SetEmail(email string) { // public because SetEmail() function starts with upper case
p.email = email
}
func (p Person) email() string { // private because email() function starts with lower case
return p.email
}