Discover Packages
create-go-app.com
emit
go
postgres
package
Version:
v0.7.3
Opens a new window with list of versions in this module.
Published: Mar 8, 2023
License: MIT, MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func NewThingService(psql *psqlService) *thingService
func NewUserService(psql *psqlService) *userService
Open opens a postgres database and returns a service to interact with it.
type User struct {
ID int `json:"id"`
Username string `json:"username"`
Password string `json:"password"`
Email string `json:"email"`
Role string `json:"role"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.