database

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connection

func Connection() error

func GetUsers

func GetUsers(res http.ResponseWriter) error

func Res

func Res[U []Users | Users | map[string]string](res http.ResponseWriter, result U)

Types

type DBCOnnection

type DBCOnnection struct {
	DB *sql.DB
}

type Users

type Users struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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