Documentation ¶
Index ¶
- Constants
- type Application
- func (app *Application) Add(name string, configuration any)
- func (app *Application) Env(envName string, defaultValue ...any) any
- func (app *Application) Get(path string, defaultValue ...any) any
- func (app *Application) GetBool(path string, defaultValue ...any) bool
- func (app *Application) GetInt(path string, defaultValue ...any) int
- func (app *Application) GetString(path string, defaultValue ...any) string
- type ServiceProvider
Constants ¶
View Source
const Binding = "goravel.config"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶ added in v1.8.0
func NewApplication(envPath string) *Application
func (*Application) Add ¶
func (app *Application) Add(name string, configuration any)
Add config to application.
func (*Application) Env ¶
func (app *Application) Env(envName string, defaultValue ...any) any
Env Get config from env.
func (*Application) Get ¶
func (app *Application) Get(path string, defaultValue ...any) any
Get config from application.
func (*Application) GetBool ¶
func (app *Application) GetBool(path string, defaultValue ...any) bool
GetBool Get bool type config from application.
type ServiceProvider ¶
type ServiceProvider struct { }
func (*ServiceProvider) Boot ¶
func (config *ServiceProvider) Boot(app foundation.Application)
func (*ServiceProvider) Register ¶
func (config *ServiceProvider) Register(app foundation.Application)
Click to show internal directories.
Click to hide internal directories.