1 Star 0 Fork 0

Bro丶Bin/drone-k8s-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.go 345 Bytes
一键复制 编辑 原始数据 按行查看 历史
阳明 提交于 2019-08-06 12:20 . add docker release pipeline
package main
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/sirupsen/logrus"
)
func main() {
r := gin.Default()
r.GET("/health", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H {
"health": true,
})
})
if err := r.Run(":8080"); err != nil {
logrus.WithError(err).Fatal("Couldn't listen")
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yangbin1212/drone-k8s-demo.git
git@gitee.com:yangbin1212/drone-k8s-demo.git
yangbin1212
drone-k8s-demo
drone-k8s-demo
master

搜索帮助