package console
import (
"html/template"
"github.com/gin-gonic/gin"
)
func Console(c *gin.Context) {
const templateText = `
Go接入服务信息
点击升级到最新版本
点击打开swagger
`
if tmpl, err := template.New("index").Parse(templateText); err == nil {
_ = tmpl.Execute(c.Writer, nil)
} else {
c.String(400, "index err.")
}
}