example

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 6 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           uint
	Name         string
	Email        *string
	Age          uint8
	Birthday     *time.Time
	MemberNumber sql.NullString
	CreatedAt    time.Time
}

type UserDAO

type UserDAO struct {
	// contains filtered or unexported fields
}

func NewUserDAO

func NewUserDAO(db *gorm.DB) (*UserDAO, error)

func (*UserDAO) CreateUser

func (u *UserDAO) CreateUser(user *User) error

func (*UserDAO) MakeQuery

func (u *UserDAO) MakeQuery(q string) ([]User, error)

Jump to

Keyboard shortcuts

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