utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64URLDecode

func Base64URLDecode(encoded string) ([]byte, error)

func DedupStringSlice added in v0.2.3

func DedupStringSlice(strings []string) []string

func FastHashHex

func FastHashHex(b []byte) string

func GenerateEtag

func GenerateEtag(b []byte) string

func Keys added in v0.2.3

func Keys[M ~map[K]V, K comparable, V any](m M) []K

func Min

func Min(args ...int) int

func Obfuscate

func Obfuscate(str string, clearLen int) string

func ReadFile

func ReadFile(path string) string

func UseTempFile

func UseTempFile(data string, f func(path string))

func WithTimeout

func WithTimeout(timeout time.Duration, f func())

func WriteIntoFile

func WriteIntoFile(path string, data string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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