Documentation ¶
Index ¶
- Constants
- func BadRequestException(w http.ResponseWriter, err string) error
- func ConflictException(w http.ResponseWriter, err string) error
- func Exception(w http.ResponseWriter, err error, statusCode int) error
- func Filter[T any](slice []T, f func(T) bool) []T
- func ForbiddenException(w http.ResponseWriter, err string) error
- func GetFunctionName(i interface{}) string
- func GetStructName(str interface{}) string
- func InternalServerException(w http.ResponseWriter, err string) error
- func NotAllowedException(w http.ResponseWriter, err string) error
- func NotFoundException(w http.ResponseWriter, err string) error
- func Remove[T any](slice []T, f func(T) bool) []T
- func UnauthorizedException(w http.ResponseWriter, err string) error
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 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 UnauthorizedException ¶
func UnauthorizedException(w http.ResponseWriter, err string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.