Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EmailNotValid = errors.New("Email is not valid!")
)
Functions ¶
func ToJson ¶
func ToJson(data DataInterface) ([]byte, error)
Types ¶
type DataInterface ¶
type SiteData ¶
type User ¶
type User struct { Username string `json:"username"` Nickname string `json:"nickname"` Password string `json:"password"` Email string `json:"email"` }
func (*User) AddPassword ¶
type UserData ¶
type UserData struct { Bookmarks []Bookmark `json:"bookmarks"` User *User `json:"user"` Setting *Setting `json:"setting"` }
func InitUserData ¶
func InitUserData() *UserData
func (*UserData) AddBookmarks ¶
Click to show internal directories.
Click to hide internal directories.