chrly/di/di.go
2023-12-14 02:16:24 +01:00

22 lines
263 B
Go

package di
import "github.com/defval/di"
func New() (*di.Container, error) {
container, err := di.New(
config,
dispatcher,
logger,
db,
mojangTextures,
handlers,
server,
signer,
)
if err != nil {
return nil, err
}
return container, nil
}