Completed
Push — main ( 788e73...fbce6d )
by Igor
28s queued 12s
created

is/identifiers.go   A

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A is.ULID 0 2 1
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