Documentation ¶ Index ¶ func Connection() error func GetUsers(res http.ResponseWriter) error func Res[U []Users | Users | map[string]string](res http.ResponseWriter, result U) type DBCOnnection type Users 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"` } Source Files ¶ View all Source files DatabaseConnection.go GetUsers.go respons.go Click to show internal directories. Click to hide internal directories.