chrly/di/di.go

21 lines
252 B
Go
Raw Normal View History

2020-04-16 22:12:38 +05:30
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 22:12:38 +05:30
)
if err != nil {
return nil, err
}
return container, nil
}