Human return the identifier, shortened for human consumption
()
| 34 | |
| 35 | // Human return the identifier, shortened for human consumption |
| 36 | func (i Id) Human() string { |
| 37 | format := fmt.Sprintf("%%.%ds", HumanIdLength) |
| 38 | return fmt.Sprintf(format, i) |
| 39 | } |
| 40 | |
| 41 | func (i Id) HasPrefix(prefix string) bool { |
| 42 | return strings.HasPrefix(string(i), prefix) |
no outgoing calls