Skip to content

Instantly share code, notes, and snippets.

@eamonnmcevoy
Last active March 14, 2017 08:21
Show Gist options
  • Save eamonnmcevoy/c92a1d2ce77bcdddc741b66c6cacede9 to your computer and use it in GitHub Desktop.
Save eamonnmcevoy/c92a1d2ce77bcdddc741b66c6cacede9 to your computer and use it in GitHub Desktop.
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
GetByUsername(username string) (*User,error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment