28 Star 75 Fork 15

Zaaksam / goman

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
os_enum.go 275 Bytes
一键复制 编辑 原始数据 按行查看 历史
Zaaksam 提交于 2018-02-07 20:27 . 优化配置定义
package config
// OSType 运行系统
type OSType int
func (os OSType) String() string {
s := AppConf.goos
if os == OS_TYPE_UNSUPPORT {
s = "不支持的系统:" + s
}
return s
}
const (
OS_TYPE_UNSUPPORT = iota
OS_TYPE_WINDOWS
OS_TYPE_DARWIN
OS_TYPE_LINUX
)
Go
1
https://gitee.com/zaaksam/goman.git
git@gitee.com:zaaksam/goman.git
zaaksam
goman
goman
v0.3.1

搜索帮助

53164aa7 5694891 3bd8fe86 5694891