Versions in this module Expand all Collapse all v0 v0.1.0 Feb 27, 2019 Changes in this version + func JsonMarshal(v interface{}) (str string) + func SendError(w http.ResponseWriter) + func SendResult(w http.ResponseWriter, data interface{}, err error) + type Base struct + CreatedAt time.Time + DeletedAt *time.Time + ID uint64 + UpdatedAt time.Time + type Error struct + Error string + ErrorCode int + ErrorDescription string + type QueryParam struct + Fields string + Limit int + Offset int + Order string + Where []WhereParam + type Result struct + Code int + Data interface{} + Message string + type Token struct + Raw string + User User + UserID uint + type User struct + Email string + Password string + Username string + func UserFrom(str string) (*User, error) + func (u *User) Compare(pwd string) (err error) + func (u *User) Encrypt() (err error) + func (u *User) Result() *UserResult + func (u *User) String() string + func (u *User) TableName() string + func (u *User) Validate() error + type UserResult struct + CreatedAt time.Time + Email string + ID uint64 + UpdatedAt time.Time + Username string + func (u *UserResult) String() string + type WhereParam struct + Field string + Prepare interface{} + Tag string