MCPcopy
hub / github.com/go-goyave/goyave / LoadDefault

Function LoadDefault

config/config.go:133–136  ·  view source on GitHub ↗

LoadDefault loads default config.

()

Source from the content-addressed store, hash-verified

131
132// LoadDefault loads default config.
133func LoadDefault() *Config {
134 cfg, _ := defaultLoader.load(nil, "")
135 return cfg
136}
137
138// LoadFrom loads a config file from the given path.
139func LoadFrom(path string) (*Config, error) {

Callers 15

TestRecoveryMiddlewareFunction · 0.92
TestLanguageMiddlewareFunction · 0.92
TestValidateMiddlewareFunction · 0.92
TestComponentFunction · 0.92
prepareRouteTestFunction · 0.92
TestServerFunction · 0.92
TestErrLogWriterFunction · 0.92
BenchmarkServeHTTPFunction · 0.92
prepareStatusHandlerTestFunction · 0.92
newTestReponseFunction · 0.92
prepareRouterTestFunction · 0.92
TestStaticHandlerFunction · 0.92

Calls 1

loadMethod · 0.45

Tested by 15

TestRecoveryMiddlewareFunction · 0.74
TestLanguageMiddlewareFunction · 0.74
TestValidateMiddlewareFunction · 0.74
TestComponentFunction · 0.74
prepareRouteTestFunction · 0.74
TestServerFunction · 0.74
TestErrLogWriterFunction · 0.74
BenchmarkServeHTTPFunction · 0.74
prepareStatusHandlerTestFunction · 0.74
newTestReponseFunction · 0.74
prepareRouterTestFunction · 0.74
TestStaticHandlerFunction · 0.74