utils

package
v0.0.0-...-4afd048 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorJSON

func ErrorJSON(w http.ResponseWriter, status int, err error)

func GetQueryParams

func GetQueryParams(r *http.Request) map[string]any

func MergeMaps

func MergeMaps(maps ...map[string]any) map[string]any

func ParseBool

func ParseBool(q url.Values, key string, defaultVal bool) bool

func ParseBoolVal

func ParseBoolVal(v string) any

func PathID

func PathID(value string) string

func WriteJSON

func WriteJSON(w http.ResponseWriter, status int, value any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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