tools

package
v0.9.16 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func FiberAuthError

func FiberAuthError(message string) *fiber.Error

func FiberNotFound

func FiberNotFound(message string) *fiber.Error

func FiberRequestError

func FiberRequestError(message string) *fiber.Error

func FiberServerError

func FiberServerError(message string) *fiber.Error

func FiberUnprocessableEntity

func FiberUnprocessableEntity(message string) *fiber.Error

func HashPassword

func HashPassword(password string) (string, error)

func RandomCodeGenerator

func RandomCodeGenerator() int

func RandomNumber

func RandomNumber(low, hi int) int

func RandomSliceElement

func RandomSliceElement[T any](sl []T) T

func ValidateUUID

func ValidateUUID(id string) (uuid.UUID, error)

Types

type StructValidator

type StructValidator struct {
	// contains filtered or unexported fields
}

func DefaultStructValidator

func DefaultStructValidator() *StructValidator

func (*StructValidator) Engine

func (s *StructValidator) Engine() any

func (*StructValidator) Validate

func (s *StructValidator) Validate(out any) error

type Validatable

type Validatable interface {
	Validate() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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