package
Version:
v0.0.0-...-47332bf
Opens a new window with list of versions in this module.
Published: Nov 25, 2019
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type UserDAO struct {
DB *gorm.DB
}
UserDAO persists user data in database
NewUserDAO creates a new UserDAO
Create create a new user into DB
Find does the actual query to database, if user with specified id is not found error is returned
FindAll returns all the users from DB
Source Files
¶
Click to show internal directories.
Click to hide internal directories.