MCPcopy Create free account
hub / github.com/BoRuDar/configuration / NewJSONFileProvider

Function NewJSONFileProvider

jsonProvider.go:21–23  ·  view source on GitHub ↗

NewJSONFileProvider creates new provider which reads values from JSON files.

(fileName string)

Source from the content-addressed store, hash-verified

19
20// NewJSONFileProvider creates new provider which reads values from JSON files.
21func NewJSONFileProvider(fileName string) (fp *FileProvider) {
22 return &FileProvider{fileName: fileName}
23}
24
25type FileProvider struct {
26 fileName string

Callers 6

TestFileProvider_InitFunction · 0.85
TestConfiguratorFunction · 0.85
TestProviderNameFunction · 0.85

Calls

no outgoing calls

Tested by 6

TestFileProvider_InitFunction · 0.68
TestConfiguratorFunction · 0.68
TestProviderNameFunction · 0.68