MCPcopy Index your code
hub / github.com/Monibuca/engine / valueWithoutModify

Method valueWithoutModify

config/config.go:276–287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

274}
275
276func (config *Config) valueWithoutModify() any {
277 if config.Env != nil {
278 return config.Env
279 }
280 if config.File != nil {
281 return config.File
282 }
283 if config.Global != nil {
284 return config.Global.GetValue()
285 }
286 return config.Default
287}
288
289func equal(vwm, v any) bool {
290 ft := reflect.TypeOf(vwm)

Callers 1

ParseModifyFileMethod · 0.80

Calls 1

GetValueMethod · 0.80

Tested by

no test coverage detected