(v interface{})
| 200 | } |
| 201 | |
| 202 | func quoted(v interface{}) string { |
| 203 | switch v.(type) { |
| 204 | case string: |
| 205 | return fmt.Sprintf("%q", v) |
| 206 | case int: |
| 207 | return fmt.Sprint(v) |
| 208 | case bool: |
| 209 | return fmt.Sprint(v) |
| 210 | default: |
| 211 | panic("unreachable") |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | var descRE = regexp.MustCompile(`{[^}]+}`) |
| 216 |