Documentation ¶
Index ¶
- Variables
- func BindPFlag(flags *pflag.FlagSet, key string, flag ...string)
- func CobraOnInitializeFunc(configFilePath *string, config interface{}) func()
- func GetEnvOrDefault(env, def string) string
- func GetIntEnvOrDefault(env string, def int) int
- func GetVersion() (ver, rev string)
- func PrintConfCommand(config interface{}) *cobra.Command
- func PrintVersion(cmd *cobra.Command, _ []string)
- func SetVersion(ver, rev string)
- func SetupDebugFlag(flags *pflag.FlagSet)
- func SetupLogLevelFlag(flags *pflag.FlagSet)
- func WaitSIGINT()
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = false
Functions ¶
func CobraOnInitializeFunc ¶
func CobraOnInitializeFunc(configFilePath *string, config interface{}) func()
func GetEnvOrDefault ¶
func GetIntEnvOrDefault ¶
func GetVersion ¶ added in v1.2.5
func GetVersion() (ver, rev string)
func PrintConfCommand ¶
PrintConfCommand 設定確認・ベース設定プリントコマンド
func SetVersion ¶ added in v1.2.5
func SetVersion(ver, rev string)
func SetupDebugFlag ¶
func SetupLogLevelFlag ¶
func WaitSIGINT ¶
func WaitSIGINT()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.