runtime

获取运行时的信息

获取操作系统的类型
os_type := runtime.GOOS
windows / linux

原文地址:https://www.cnblogs.com/cizao/p/11484456.html