models

package
v0.0.0-...-e3d78ff Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUser

func AddUser(db *sql.DB, ID int, NAME string) string

func InitDB

func InitDB(filepath string) *sql.DB

Types

type User

type User struct {
	ID   int    `json:"id"`
	NAME string `json:"name"`
}

func GetUsers

func GetUsers(db *sql.DB, id2 int) User

Jump to

Keyboard shortcuts

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