(raw any)
| 172 | } |
| 173 | |
| 174 | func mutableString(raw any) string { |
| 175 | switch value := raw.(type) { |
| 176 | case string: |
| 177 | return value |
| 178 | case fmt.Stringer: |
| 179 | return value.String() |
| 180 | case bool: |
| 181 | if value { |
| 182 | return "true" |
| 183 | } |
| 184 | return "false" |
| 185 | case nil: |
| 186 | return "" |
| 187 | default: |
| 188 | return strings.TrimSpace(fmt.Sprint(value)) |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | func mutableBool(raw any) bool { |
| 193 | value, ok := raw.(bool) |
no test coverage detected