Millet_Chili

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2021年11月23日

摘要: 让我们给http服务写一个版本更新接口,让它自动更新版本并重启服务吧。 初步例子 注:为了精简,文中代码都去除了err处理 main.go var Version = "1.0" /* 打印版本 */ func version(w http.ResponseWriter, r *http.Reque 阅读全文
posted @ 2021-11-23 16:19 Millet_Chili 阅读(1203) 评论(0) 推荐(2) 编辑