(key reflect.Value)
| 108 | } |
| 109 | |
| 110 | func mapKeyToString(key reflect.Value) string { |
| 111 | if !key.IsValid() { |
| 112 | return "" |
| 113 | } |
| 114 | if key.Kind() == reflect.String { |
| 115 | return key.String() |
| 116 | } |
| 117 | if key.CanInterface() { |
| 118 | return fmt.Sprint(key.Interface()) |
| 119 | } |
| 120 | return "" |
| 121 | } |
| 122 | |
| 123 | func encodeMCPIDValue(value any) (any, bool) { |
| 124 | if value == nil { |
no test coverage detected