Returns a lslice of keys of the values in the map that are invalid or are a non-zero-value for their respective type. (e.g. anything other than a `""` for string type) Note that the zero-values for innately pointer-types slices/maps/chans are `nil`, and NOT a zero-length container value like `[]Any{
(values map[string]interface{})
| 901 | // Note that the zero-values for innately pointer-types slices/maps/chans are `nil`, |
| 902 | // and NOT a zero-length container value like `[]Any{}`. |
| 903 | func nonZeroMapValues(values map[string]interface{}) []string { |
| 904 | nonZero := []string{} |
| 905 | |
| 906 | for k, v := range values { |
| 907 | if !reflect.ValueOf(v).IsZero() { |
| 908 | nonZero = append(nonZero, k) |
| 909 | } |
| 910 | } |
| 911 | |
| 912 | return nonZero |
| 913 | } |
no outgoing calls
searching dependent graphs…