package
Version:
v0.0.0-...-efea637
Opens a new window with list of versions in this module.
Published: Mar 30, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Animal struct {
ID string `jsonapi:"primary,animals"`
Name string `jsonapi:"attr,name"`
CreatedAt time.Time `jsonapi:"attr,created_at"`
UpdatedAt time.Time `jsonapi:"attr,updated_at"`
}
type User struct {
ID string `jsonapi:"primary,users"`
Username string `jsonapi:"attr,username"`
FullName string `jsonapi:"attr,full_name"`
Email string `jsonapi:"attr,email"`
Phone string `jsonapi:"attr,phone"`
CreatedAt time.Time `jsonapi:"attr,created_at"`
UpdatedAt time.Time `jsonapi:"attr,updated_at"`
}
func NewUser(username, fullName, email, phone string) *User
Source Files
¶
Click to show internal directories.
Click to hide internal directories.