1 Star 2 Fork 3

kristas/booting-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
component.go 361 Bytes
一键复制 编辑 原始数据 按行查看 历史
fulin.a.wang 提交于 2021-03-11 18:50 . feat: use logrus as default logger
package bean
import (
"fmt"
uuid "github.com/iris-contrib/go.uuid"
"github.com/kataras/iris/v12"
)
type Controller struct {
IrisApp *iris.Application `bean:"iris_app"`
}
func (r *Controller) Bean() string {
v1, _ := uuid.NewV1()
return fmt.Sprintf("%s_controller", v1.String())
}
type Service struct {
}
func (r *Service) Bean() string {
return ""
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/kristas/booting-go.git
git@gitee.com:kristas/booting-go.git
kristas
booting-go
booting-go
v1.0.6

搜索帮助