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

is.ULID   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
nop 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