You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kratos/tool/kratos-gen-project/templates/http/internal/di/wire.go.tmpl

17 lines
412 B

// +build wireinject
// The build tag makes sure the stub is not built in the final build.
package di
import (
"{{.ModPrefix}}{{.Name}}/internal/dao"
"{{.ModPrefix}}{{.Name}}/internal/service"
"{{.ModPrefix}}{{.Name}}/internal/server/http"
"github.com/google/wire"
)
//go:generate kratos t wire
func InitApp() (*App, func(), error) {
panic(wire.Build(dao.Provider, service.Provider, http.New, NewApp))
}