MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / nonEmptyStrings

Function nonEmptyStrings

ui/runtime.go:975–983  ·  view source on GitHub ↗
(values []string)

Source from the content-addressed store, hash-verified

973 return out, true
974}
975
976func stringFieldByNames(value reflect.Value, names ...string) string {
977 field := fieldByNames(value, names...)
978 if !field.IsValid() || !field.CanInterface() {
979 return ""
980 }
981 return stringFromAny(field.Interface())
982}
983
984func fieldByNames(value reflect.Value, names ...string) reflect.Value {
985 for _, name := range names {
986 if field := value.FieldByName(name); field.IsValid() {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected