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.
22 lines
696 B
22 lines
696 B
4 years ago
|
// +build wireinject
|
||
|
|
||
|
// The build tag makes sure the stub is not built in the final build.
|
||
|
|
||
|
package main
|
||
|
|
||
|
import (
|
||
|
"github.com/go-kratos/examples/blog/internal/biz"
|
||
|
"github.com/go-kratos/examples/blog/internal/conf"
|
||
|
"github.com/go-kratos/examples/blog/internal/data"
|
||
|
"github.com/go-kratos/examples/blog/internal/server"
|
||
|
"github.com/go-kratos/examples/blog/internal/service"
|
||
|
"github.com/go-kratos/kratos/v2"
|
||
|
"github.com/go-kratos/kratos/v2/log"
|
||
|
"github.com/google/wire"
|
||
|
)
|
||
|
|
||
|
// initApp init kratos application.
|
||
|
func initApp(*conf.Server, *conf.Data, log.Logger) (*kratos.App, error) {
|
||
|
panic(wire.Build(server.ProviderSet, data.ProviderSet, biz.ProviderSet, service.ProviderSet, newApp))
|
||
|
}
|