support

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSlashes

func AddSlashes(str string) string

func BytesToSring

func BytesToSring(b []byte) string

func GetBinDirPath

func GetBinDirPath() string

func GetEnv

func GetEnv(key, def string) string

GetEnv from OS.

func GetEnvDur

func GetEnvDur(key string, def time.Duration) (time.Duration, error)

GetEnvDur from OS.

func GetEnvInt

func GetEnvInt(key string, def int) (int, error)

GetEnvInt from OS.

func RandBool

func RandBool() bool

func TruncateString

func TruncateString(str string, length int) string

func WithKillSignal

func WithKillSignal(ctx context.Context) (context.Context, context.CancelFunc)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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