user

package
v0.0.0-...-75d045b Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB

DB represents a sql.DB obj

TS represents a TestSQL obj

Functions

func UpdateUserName

func UpdateUserName(id int, name string) error

UpdateUserName update user's name

Types

type User

type User struct {
	ID   int
	Name string
}

User represents a user

func GetUserByID

func GetUserByID(id int) (*User, error)

GetUserByID returns a user

Jump to

Keyboard shortcuts

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