database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize() (err error)

Initialize initialize

Types

type Options

type Options struct {
	Limit    int    `form:"limit"`
	Offset   int    `form:"offset"`
	Category string `form:"category"`
}

Options ..

type User

type User struct {
	gorm.Model `json:"-"`
	Name       string `json:"name" gorm:"name"`
}

User user

func (*User) Create

func (u *User) Create() (err error)

Create create user

func (*User) Find

func (u *User) Find(options Options) (users []User, err error)

Find find all the questions

Jump to

Keyboard shortcuts

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