Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigPath string = ""
app 的全局配置文件
Functions ¶
Types ¶
type AppConfig ¶
type AppConfig struct {
Title string `yaml:"title" json:"Title"` // 程序名称
Debug bool `yaml:"debug" json:"Debug"` // debug 模式
Frameless bool `yaml:"frameless" json:"Frameless"` // 无边框
Pwdbox string `yaml:"pwdbox" json:"pwdbox"` // 保险箱路径
}
只能暴露给前端结构体的函数,成员变量不能访问,只能通过函数获取 推荐: 函数 和 数据使用不同的结构体
var Config AppConfig
app 的全局配置对象
func DefaultAppConfig ¶
func DefaultAppConfig() AppConfig
type ConfigOps ¶
type ConfigOps struct {
}
暴露给外部的操作对象
func (*ConfigOps) SaveAppConfig ¶
这个是给前端调用的,修改全局配置并保存
Click to show internal directories.
Click to hide internal directories.