FromString reads an ID from its string representation
(id string)
| 162 | |
| 163 | // FromString reads an ID from its string representation |
| 164 | func FromString(id string) (ID, error) { |
| 165 | i := &ID{} |
| 166 | err := i.UnmarshalText([]byte(id)) |
| 167 | return *i, err |
| 168 | } |
| 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 { |
searching dependent graphs…