config

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(key string, def ...bool) bool

GetBool returns a setting in bool.

func GetInt

func GetInt(key string, def ...int) int

GetInt returns a setting in integer.

func GetInt64

func GetInt64(key string, def ...int64) int64

GetInt64 returns a setting in integer.

func GetMillisecond

func GetMillisecond(key string, def ...time.Duration) time.Duration

GetMillisecond returns a setting in time.Duration.

func GetString

func GetString(key string, defaultValue ...string) string

GetString returns a setting in string.

func GetUint

func GetUint(key string, def ...uint) uint

GetUint returns a setting in unsigned integer.

func ParseTimeConfig added in v0.0.2

func ParseTimeConfig(t string) (time.Time, error)

ParseTimeConfig parses config to time with format.

func SetString

func SetString(key string, value string)

SetString sets string to strEnvMap.

Types

This section is empty.

Jump to

Keyboard shortcuts

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