Documentation ¶ Overview ¶ Package conf 用于项目基础配置。 Index ¶ Variables type Conf Constants ¶ This section is empty. Variables ¶ View Source var ( // Env 代表当前运行环境 Env string // C 代表当前运行配置对象 C *Conf // TestCase 运行单元测试时,会设为true TestCase bool ) Functions ¶ This section is empty. Types ¶ type Conf ¶ type Conf struct { // 基本配置 App *struct { Name string Ip string Port int } // clog日志输出配置 Clog *struct { Name string Mode int Level int } // 各种名字或addr配置 Addrs *struct { Clog string } } Conf 定义配置参数 Source Files ¶ View all Source files conf.go Click to show internal directories. Click to hide internal directories.