优化
This commit is contained in:
14
config/config.go
Normal file
14
config/config.go
Normal file
@ -0,0 +1,14 @@
|
||||
package config
|
||||
|
||||
var Cfg Config
|
||||
|
||||
// Config 配置
|
||||
type Config struct {
|
||||
Server Server
|
||||
}
|
||||
|
||||
// Server 服务配置
|
||||
type Server struct {
|
||||
AppMode string // 应用模式
|
||||
ServerPort string // 服务端口
|
||||
}
|
4
config/config.yaml
Normal file
4
config/config.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
# 本地运行的配置文件
|
||||
Server:
|
||||
AppMode: debug # debug 开发环境, release 生产环境
|
||||
ServerPort: :80 # 服务端口
|
Reference in New Issue
Block a user