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/grpc/internal/di/wire.go.tmpl

17 lines
413 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/grpc"
"github.com/google/wire"
)
//go:generate kratos t wire
func InitApp() (*App, func(), error) {
panic(wire.Build(dao.Provider, service.Provider, grpc.New, NewApp))
}