Skip to content

Instantly share code, notes, and snippets.

@eamonnmcevoy
eamonnmcevoy / user.go
Last active March 14, 2017 08:21
User.go part 1, create user
package root
type User struct {
Id string `json:"id"`
Username string `json:"username"`
Password string `json:"password"`
}
type UserService interface {
CreateUser(u *User) error
package root
type User struct {
Id string `json:"id"`
Username string `json:"username"`
Password string `json:"password"`
}
type UserService interface {
CreateUser(u *User) error