Guest User

Untitled

a guest
Oct 29th, 2018
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. func NewFakeStore() *UserStore {
  2. return &UserStore{}
  3. }
  4.  
  5. func (s *UserStore) GetByID(id int64) (*User, error) {
  6. if id == 42 {
  7. return nil, fmt.Errorf("Error getting user with ID: %d", id)
  8. }
  9.  
  10. nu := &NewUser{
  11. Email: "bobdylan@uw.edu",
  12. Password: "testingisfun",
  13. PasswordConf: "testingisfun",
  14. UserName: "bobdylan",
  15. FirstName: "Bob",
  16. LastName: "Dylan",
  17. }
  18.  
  19. // ... Continued by you :)
  20. }
Add Comment
Please, Sign In to add comment