Total Lines | 8 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package is |
||
2 | |||
3 | import "github.com/muonsoft/validation/validate" |
||
4 | |||
5 | // ULID validates whether the value is a valid ULID (Universally Unique Lexicographically Sortable Identifier). |
||
6 | // See https://github.com/ulid/spec for ULID specifications. |
||
7 | func ULID(value string) bool { |
||
8 | return validate.ULID(value) == nil |
||
9 | } |
||
10 |