//go:build wireinject // +build wireinject // The build tag makes sure the stub is not built in the final build. package main import ( "github.com/go-kratos/kratos/v2" "github.com/go-kratos/kratos/v2/log" "github.com/google/wire" "hilo/app/service/user/internal/conf" "hilo/app/service/user/internal/dao" "hilo/app/service/user/internal/handler" "hilo/app/service/user/internal/server" "hilo/app/service/user/internal/service" ) // wireApp init kratos application. func wireApp(*conf.Server, *conf.Client, *conf.Data, *conf.Consul, log.Logger) (*kratos.App, func(), error) { panic(wire.Build(server.ProviderSet, dao.ProviderSet, service.ProviderSet, handler.ProviderSet, newApp)) }