Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func NewFakeStore() *UserStore {
- return &UserStore{}
- }
- func (s *UserStore) GetByID(id int64) (*User, error) {
- if id == 42 {
- return nil, fmt.Errorf("Error getting user with ID: %d", id)
- }
- nu := &NewUser{
- Email: "bobdylan@uw.edu",
- Password: "testingisfun",
- PasswordConf: "testingisfun",
- UserName: "bobdylan",
- FirstName: "Bob",
- LastName: "Dylan",
- }
- // ... Continued by you :)
- }
Add Comment
Please, Sign In to add comment