args

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillEvn

func FillEvn(env interface{})

根据命令行参数,自动填充,目前仅仅支持 整数,bool,字符串 env 需要是指针

func GetInt

func GetInt(key string) (v int, ok bool)

func GetIntDefault

func GetIntDefault(key string, df int) int

func GetOther

func GetOther() []string

func GetString

func GetString(key string) (v string, ok bool)

func GetStringDefault

func GetStringDefault(key string, df string) string

func GetValues

func GetValues(key string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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