support

package
v0.10.2 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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDir added in v0.8.0

func EnsureDir(dirName string) error

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 RandInt added in v0.8.0

func RandInt(max int64) int64

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