utils

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Validate = validator.New()

Functions

func GetEnvAsBool

func GetEnvAsBool(env string) bool

func GetEnvAsInt

func GetEnvAsInt(env string) int

func LoadEnvs added in v0.1.2

func LoadEnvs() error

func ParseJSON

func ParseJSON(r *http.Request, v any) error

func WriteError

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

func WriteJSON

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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