String returns a base32 hex lowercased with no padding representation of the id (char set is 0-9, a-v).
()
| 169 | |
| 170 | // String returns a base32 hex lowercased with no padding representation of the id (char set is 0-9, a-v). |
| 171 | func (id ID) String() string { |
| 172 | text := make([]byte, encodedLen) |
| 173 | encode(text, id[:]) |
| 174 | return string(text) |
| 175 | } |
| 176 | |
| 177 | // Encode encodes the id using base32 encoding, writing 20 bytes to dst and return it. |
| 178 | func (id ID) Encode(dst []byte) []byte { |