app

package
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Container *container.Container
	// contains filtered or unexported fields
}

App is the application container that manages providers and services.

func New

func New() *App

New creates a new application with an empty container.

func (*App) Boot

func (a *App) Boot()

Boot calls Boot on all registered providers in registration order.

func (*App) Make

func (a *App) Make(name string) interface{}

Make resolves a service from the container.

func (*App) Register

func (a *App) Register(provider container.Provider)

Register adds a provider and immediately calls its Register method.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL