chrly/di/di.go

21 lines
252 B
Go
Raw Normal View History

2020-04-16 19:42:38 +03:00
package di
import "github.com/goava/di"
func New() (*di.Container, error) {
container, err := di.New(
config,
dispatcher,
logger,
db,
mojangTextures,
handlers,
server,
2020-04-16 19:42:38 +03:00
)
if err != nil {
return nil, err
}
return container, nil
}