Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NullString ¶
type NullString struct {
sql.NullString
}
func (NullString) MarshalJSON ¶
func (t NullString) MarshalJSON() ([]byte, error)
func (*NullString) UnmarshalJSON ¶
func (t *NullString) UnmarshalJSON(data []byte) error
type PassChange ¶
func (*PassChange) Validate ¶
func (p *PassChange) Validate() error
type User ¶
type User struct { Id int64 `json:"id"` Username string `json:"username"` FirstName NullString `json:"firstName"` LastName NullString `json:"lastName"` Age NullInt32 `json:"age"` Gender string `json:"gender"` City NullString `json:"city"` Interests NullString `json:"interests"` PasswordHash []byte `json:"-"` IsFriend bool `json:"isFriend,omitempty"` CreatedAt time.Time `json:"createdAt"` }
func (*User) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.