util

package
v0.0.0-...-74ba32b Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONRequest

func JSONRequest(request *http.Request, value interface{}) error

func JSONResponse

func JSONResponse(w http.ResponseWriter, v interface{})

func ParseHost

func ParseHost(host string, port uint16) string

func ParseSqlString

func ParseSqlString(s sql.NullString) *string

Types

type Result

type Result[T any] struct {
	Data []T `json:"data"`
}

func NewResult

func NewResult[T any](data []T) Result[T]

Jump to

Keyboard shortcuts

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