Documentation ¶
Index ¶
- func AddCommonFlags(cmdline *pflag.FlagSet) *bool
- func FileExists(filename string) (bool, error)
- func GetIPAddress() (addrList []string)
- func InitFlags()
- func RandomInt(limit int) int
- func RandomString(length int) string
- func WarnWordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
- func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommonFlags ¶
AddCommonFlags add common flags that is needed by all modules
func GetIPAddress ¶
func GetIPAddress() (addrList []string)
GetIPAddress get local usable inner ip address
func RandomString ¶
RandomString get a random string made up of alphabet characters with given length.
func WarnWordSepNormalizeFunc ¶
func WarnWordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
WarnWordSepNormalizeFunc changes and warns for flags that contain "_" separators
func WordSepNormalizeFunc ¶
func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
WordSepNormalizeFunc changes all flags that contain "_" separators
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.