2 Star 19 Fork 0

仓库镜像/gin-gonic-gin
Closed

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
main.go 275 Bytes
Copy Edit Raw Blame History
田欧 authored 2017-11-12 13:11 +08:00 . add package for govendor (#1166)
package main
import (
"log"
"github.com/gin-gonic/autotls"
"github.com/gin-gonic/gin"
)
func main() {
r := gin.Default()
// Ping handler
r.GET("/ping", func(c *gin.Context) {
c.String(200, "pong")
})
log.Fatal(autotls.Run(r, "example1.com", "example2.com"))
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/github-image/gin-gonic-gin.git
git@gitee.com:github-image/gin-gonic-gin.git
github-image
gin-gonic-gin
gin-gonic-gin
v1.3.0

Search