util

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ptr

func Ptr[T any](v T) *T

func WriteErrorJSON

func WriteErrorJSON(w http.ResponseWriter, status int, msg string)

WriteErrorJSON writes a JSON error body {"error":"<msg>"} with the given status.

func WriteJSON

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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