Documentation ¶
Index ¶
Constants ¶
View Source
const (
CfgRoamingPath = "starbox\\boxcfg.json"
)
Variables ¶
This section is empty.
Functions ¶
func WriteCfg ¶
func WriteCfg(property *AppProperty) (err error)
Types ¶
type AppProperty ¶
type AppProperty struct { Version string `json:"app_version"` InstalledPath string `json:"installed_path"` }
需要与 flutter 端保持一致 用于安装程序读取
func ReadCfg ¶
func ReadCfg(cfgPath string) (property *AppProperty, err error)
Click to show internal directories.
Click to hide internal directories.