Created
March 12, 2017 03:19
-
-
Save eamonnmcevoy/8617a1cdf6e2cc4f97faa94ecac69851 to your computer and use it in GitHub Desktop.
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 | |
GetUserByUsername(username string) (error, User) | |
Login(c Credentials) (error, User) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment