common

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 6 Imported by: 6

Documentation

Index

Constants

View Source
const MaxInt = int(MaxUint >> 1)
View Source
const MaxUint = ^uint(0)

Variables

This section is empty.

Functions

func BadRequestException

func BadRequestException(w http.ResponseWriter, err string) error

func ConflictException

func ConflictException(w http.ResponseWriter, err string) error

func Exception

func Exception(w http.ResponseWriter, err error, statusCode int) error

func Filter added in v1.4.0

func Filter[T any](slice []T, f func(T) bool) []T

func ForbiddenException

func ForbiddenException(w http.ResponseWriter, err string) error

func GetFunctionName added in v1.2.2

func GetFunctionName(i interface{}) string

func GetStructName added in v1.2.2

func GetStructName(str interface{}) string

func InternalServerException

func InternalServerException(w http.ResponseWriter, err string) error

func NotAllowedException

func NotAllowedException(w http.ResponseWriter, err string) error

func NotFoundException

func NotFoundException(w http.ResponseWriter, err string) error

func Remove added in v1.4.0

func Remove[T any](slice []T, f func(T) bool) []T

func UnauthorizedException

func UnauthorizedException(w http.ResponseWriter, err string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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