user

package
v0.0.0-...-d20ae3c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Id        int
	Firstname string
	Lastname  string
	Address   string
	Phone     string
}

func (*User) CreateUser

func (n *User) CreateUser(db *sql.DB) (err error)

func (*User) DeleteUser

func (n *User) DeleteUser(db *sql.DB) error

func (*User) GetUser

func (n *User) GetUser(db *sql.DB) error

func (*User) GetUsers

func (n *User) GetUsers(db *sql.DB) ([]User, error)

func (*User) UpdateUser

func (n *User) UpdateUser(db *sql.DB) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL