MCPcopy
hub / github.com/livebud/bud / valWithType

Method valWithType

internal/is/is_internal.go:60–68  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

58}
59
60func (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
70var reArgs = regexp.MustCompile(`\$\{[0-9]+\}`)
71

Callers 3

EqualMethod · 0.95
InMethod · 0.95
NotInMethod · 0.95

Calls 1

isNilFunction · 0.85

Tested by

no test coverage detected