utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSdkIdContextParam

func AddSdkIdContextParam(r *http.Request)

func Base64URLDecode

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

func FastHash

func FastHash(b []byte) uint64

func FastHashHex

func FastHashHex(b []byte) string

func GenerateEtag

func GenerateEtag(b []byte) string

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