MCPcopy Create free account
hub / github.com/gookit/config / LoadFiles

Function LoadFiles

load.go:26–26  ·  view source on GitHub ↗

LoadFiles load one or multi files, will fire OnLoadData event Usage: config.LoadFiles(file1, file2, ...)

(sourceFiles ...string)

Source from the content-addressed store, hash-verified

24//
25// config.LoadFiles(file1, file2, ...)
26func LoadFiles(sourceFiles ...string) error { return dc.LoadFiles(sourceFiles...) }
27
28// LoadFiles load and parse config files, will fire OnLoadData event
29func (c *Config) LoadFiles(sourceFiles ...string) (err error) {

Callers 3

ExampleFunction · 0.85
TestDefaultLoadFunction · 0.85
TestReloadFilesFunction · 0.85

Calls 1

LoadFilesMethod · 0.80

Tested by 3

ExampleFunction · 0.68
TestDefaultLoadFunction · 0.68
TestReloadFilesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…