go
娜迦T
这个作者很懒,什么都没留下…
展开
-
go读取yaml配置文件
go读取yaml配置文件配置文件读取配置文件更多更全拥有的代码下载 配置文件 cfg.yaml name: testsvr blackip: - 1.1.1.1 - 2.2.2.2 auto: false port: 9999 clusterip: [3.3.3.3,4.4.4.4] health: url: http://localhost:5444 # 地址 cmd: netstat -anlt # 命令 interval: 3s # 间隔时间 timeout: 20s # 超时原创 2020-06-19 15:27:39 · 2658 阅读 · 0 评论 -
docker部署web项目-终极版本(docker-compose和go)
通过docker打包自己编写的web服务,方便部署、测试、演示。 容器互通,app启动加载外部配置文件。原创 2020-06-10 16:26:44 · 3712 阅读 · 1 评论 -
GO环境变量配置
GOROOT :go的安装目录 GOPATH :你自己开发go语言代码的目录,目录结构为bin,pkg,src PS:把GOROOT\bin这目录加入到你的系统的path中! 也可以配置一个GOBIN :GOROOT\bin,把GOBIN加入到系统的path中!原创 2014-02-13 15:56:54 · 1219 阅读 · 0 评论