TruncateID returns a shorthand version of a string identifier for presentation, after trimming digest algorithm prefix (if any). This function is a wrapper for [stringid.TruncateID] for convenience.
(id string)
| 33 | // |
| 34 | // This function is a wrapper for [stringid.TruncateID] for convenience. |
| 35 | func TruncateID(id string) string { |
| 36 | return stringid.TruncateID(id) |
| 37 | } |
| 38 | |
| 39 | // Ellipsis truncates a string to fit within maxDisplayWidth, and appends ellipsis (…). |
| 40 | // For maxDisplayWidth of 1 and lower, no ellipsis is appended. |
no outgoing calls
searching dependent graphs…