()
| 36 | type TruncateOption int |
| 37 | |
| 38 | func (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 | |
| 49 | const ( |
| 50 | // TruncateWithEllipsis adds a Unicode ellipsis character to the end of the string. |
no outgoing calls