helpers

package
v0.0.0-...-2f46974 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvToBool

func EnvToBool(value *bool, key string, defaultValue bool)

EnvToBool convert env variable to bool

func EnvToInt

func EnvToInt(value *int, key string, defaultValue int)

EnvToInt convert env variable to int

func EnvToString

func EnvToString(value *string, key string, defaultValue string)

EnvToString convert env variable to string

func GenerateRandomString

func GenerateRandomString(length int) string

GenerateRandomString return random string with length len

func IntToHex

func IntToHex(num int64) []byte

IntToHex converts an int64 to a byte array

func Walk

func Walk(dir string) ([]os.FileInfo, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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