MCPcopy Index your code
hub / github.com/DoNewsCode/core / Default

Function Default

c.go:195–199  ·  view source on GitHub ↗

Default creates a core.C under its default state. Core dependencies are already provided, and the config module and serve module are bundled.

(opts ...CoreOption)

Source from the content-addressed store, hash-verified

193// Default creates a core.C under its default state. Core dependencies are
194// already provided, and the config module and serve module are bundled.
195func Default(opts ...CoreOption) *C {
196 c := New(opts...)
197 c.ProvideEssentials()
198 return c
199}
200
201// AddModule adds a module to the core.
202//

Callers 12

Example_minimalFunction · 0.92
TestIntegrationFunction · 0.92
ExampleFunction · 0.92
Example_readerFunction · 0.92
TestModule_hotReloadFunction · 0.92
TestProvidersFunction · 0.92
Test_deprecationFunction · 0.92
Example_serverFunction · 0.92
Example_providersFunction · 0.92
Example_cronjobFunction · 0.92
Test_integrationFunction · 0.92

Calls 2

ProvideEssentialsMethod · 0.80
NewFunction · 0.70

Tested by 12

Example_minimalFunction · 0.74
TestIntegrationFunction · 0.74
ExampleFunction · 0.74
Example_readerFunction · 0.74
TestModule_hotReloadFunction · 0.74
TestProvidersFunction · 0.74
Test_deprecationFunction · 0.74
Example_serverFunction · 0.74
Example_providersFunction · 0.74
Example_cronjobFunction · 0.74
Test_integrationFunction · 0.74