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 PrintConfCommand(config interface{}) *cobra.Command
- func PrintVersion(cmd *cobra.Command, _ []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 PrintConfCommand ¶
PrintConfCommand 設定確認・ベース設定プリントコマンド
func SetupDebugFlag ¶
func SetupLogLevelFlag ¶
func WaitSIGINT ¶
func WaitSIGINT()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.