utils

package
v0.0.0-...-d386c04 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsPathify

func AbsPathify(in string) string

func ChunkNext

func ChunkNext[T int | int32 | int64 | uint | uint32 | uint64](prev, end, step T) T

func Key

func Key(values ...string) string

func Liveness

func Liveness(name string) error

func Max

func Max[T int | int32 | int64](x, y T) T

func Min

func Min[T int | int32 | int64](x, y T) T

func PasswordCompare

func PasswordCompare(pass, hash string) error

func PasswordHash

func PasswordHash(pass string) (string, error)

func RandomString

func RandomString(n int) string

func Readiness

func Readiness(name string) error

func SignatureSign

func SignatureSign(key, data string) string

func SliceMerge

func SliceMerge[T any](dest map[string]T, sources ...map[string]T)

func Stringify

func Stringify(value interface{}) string

func StringifyIndent

func StringifyIndent(value interface{}) string

func UrlScheme

func UrlScheme(rawURL string) (scheme string, err error)

func UserHomeDir

func UserHomeDir() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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