(v interface{})
| 58 | } |
| 59 | |
| 60 | func (is *I) valWithType(v interface{}) string { |
| 61 | if isNil(v) { |
| 62 | return "<nil>" |
| 63 | } |
| 64 | if is.colorful { |
| 65 | return fmt.Sprintf("%[1]s%[3]T(%[2]s%[3]v%[1]s)%[2]s", colorType, colorNormal, v) |
| 66 | } |
| 67 | return fmt.Sprintf("%[1]T(%[1]v)", v) |
| 68 | } |
| 69 | |
| 70 | var reArgs = regexp.MustCompile(`\$\{[0-9]+\}`) |
| 71 |