Add users

This commit is contained in:
2022-02-13 21:45:27 +01:00
parent e03efbf09c
commit 3e843d429a
11 changed files with 326 additions and 28 deletions

10
pkg/users/model.go Normal file
View File

@@ -0,0 +1,10 @@
package users
type User struct {
Id int
Email string
}
func NewUser(id int, email string) *User {
return &User{id, email}
}