Last active
March 14, 2017 08:21
-
-
Save eamonnmcevoy/c92a1d2ce77bcdddc741b66c6cacede9 to your computer and use it in GitHub Desktop.
User.go part 1, create user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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