- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for isCfgVal (0.08 sec)
-
pkg/test/framework/config/config.go
} } // if the registered flag implements config.Value, and is a non-string type, we can do fancy custom parsing cfgValue, isCfgVal := f.Value.(Value) if cfgMap := parent.Map(key); isCfgVal && len(cfgMap) > 0 { err = cfgValue.SetConfig(cfgMap) } else if cfgSlice := parent.Slice(key); isCfgVal && len(cfgSlice) > 0 { err = cfgValue.SetConfig(cfgSlice) } else if v := parent.String(key); v != "" {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 3.1K bytes - Viewed (0)