20 Star 164 Fork 26

qiqi / orange

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
indexgo.go 433 Bytes
一键复制 编辑 原始数据 按行查看 历史
qiqi 提交于 2021-06-16 15:15 . 调整脚手架结构
package tpl
var indexGo = `package controller
import (
"context"
"fmt"
"gitee.com/zhucheer/orange/app"
"time"
)
func Welcome(c *app.Context) error {
return c.ToString(` + "`{{.indexHtml}}`" + `)
}
func AuthCheck(c *app.Context) error {
return c.ToJson(map[string]interface{}{
"auth": "auth is ok",
})
}
func JobShowTime(c *context.Context)error{
fmt.Println("显示当前时间:",time.Now().String())
return nil
}`
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/zhucheer/orange.git
git@gitee.com:zhucheer/orange.git
zhucheer
orange
orange
v0.5.16

搜索帮助

344bd9b3 5694891 D2dac590 5694891