MCPcopy Index your code
hub / github.com/ContainerSSH/ContainerSSH / loadJSON

Method loadJSON

internal/config/loader_reader.go:71–75  ·  view source on GitHub ↗
(reader io.Reader, config *config.AppConfig)

Source from the content-addressed store, hash-verified

69}
70
71func (y *readerLoader) loadJSON(reader io.Reader, config *config.AppConfig) error {
72 decoder := json.NewDecoder(reader)
73 decoder.DisallowUnknownFields()
74 return decoder.Decode(config)
75}

Callers 1

LoadMethod · 0.95

Calls 1

DecodeMethod · 0.95

Tested by

no test coverage detected