utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHostNotCompare = errors.New("host not compare")

Functions

func CompareHashPassword

func CompareHashPassword(password, hash string) bool

func CompareHosts

func CompareHosts(links ...string) error

func HashPassword

func HashPassword(password string) (string, error)

func MapArray

func MapArray[T any, K any](data []K, cb func(index int, item K) T) []T

func Must

func Must(err error)

func MustMsg

func MustMsg(err error, msg string)

func NormalizeURL

func NormalizeURL(url string) string

func Point

func Point[T any](val T) *T

func RequestIsAjax

func RequestIsAjax(r *http.Request) bool

func RequestIsJson

func RequestIsJson(r *http.Request) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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