MCPcopy Index your code
hub / github.com/perkeep/perkeep / LowLevelJSONConfig

Method LowLevelJSONConfig

pkg/serverinit/serverinit.go:966–976  ·  view source on GitHub ↗

LowLevelJSONConfig returns the config's underlying low-level JSON form for debugging. Deprecated: this is provided for debugging only and will be going away as the move to TOML-based configuration progresses. Do not depend on this.

()

Source from the content-addressed store, hash-verified

964// Deprecated: this is provided for debugging only and will be going away
965// as the move to TOML-based configuration progresses. Do not depend on this.
966func (c *Config) LowLevelJSONConfig() map[string]interface{} {
967 // Make a shallow clone of c.jconf so we can mutate the
968 // handlerConfig key to make it explicitly true, without
969 // modifying anybody's else view of it.
970 ret := map[string]interface{}{}
971 for k, v := range c.jconf {
972 ret[k] = v
973 }
974 ret["handlerConfig"] = true
975 return ret
976}

Callers 2

RunCommandMethod · 0.80
RunCommandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected