MCPcopy Index your code
hub / github.com/coder/coder / String

Method String

coderd/util/strings/strings.go:38–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36type TruncateOption int
37
38func (o TruncateOption) String() string {
39 switch o {
40 case TruncateWithEllipsis:
41 return "TruncateWithEllipsis"
42 case TruncateWithFullWords:
43 return "TruncateWithFullWords"
44 default:
45 return fmt.Sprintf("TruncateOption(%d)", o)
46 }
47}
48
49const (
50 // TruncateWithEllipsis adds a Unicode ellipsis character to the end of the string.

Callers 6

TestChecker_NotifyFunction · 0.45
TestChecker_LatestFunction · 0.45
TruncateFunction · 0.45
UISanitizeFunction · 0.45
wordLiteralFunction · 0.45
Test_TimezoneIANAFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestChecker_NotifyFunction · 0.36
TestChecker_LatestFunction · 0.36
Test_TimezoneIANAFunction · 0.36