// +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)) }