chrly/internal/di/di.go
2024-02-01 07:58:26 +01:00

23 lines
277 B
Go

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