package config type Config struct { ServerName string ConsulAddr string ConsulTag string DebugLog bool TraceLog bool LogFile string KafkaAddr string OpenKafkaLog bool LogTopic string ExpireInterval int ReqType string } var config Config func GetConfig() Config { return config } func SetConfig(c Config) { config = c }