MCPcopy
hub / github.com/duke-git/lancet / ExampleRandLower

Function ExampleRandLower

random/random_example_test.go:78–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76}
77
78func ExampleRandLower() {
79 pattern := `^[a-z]+$`
80 reg := regexp.MustCompile(pattern)
81
82 s := RandLower(6)
83
84 result1 := reg.MatchString(s)
85 result2 := len(s)
86
87 fmt.Println(result1)
88 fmt.Println(result2)
89
90 // Output:
91 // true
92 // 6
93}
94
95func ExampleRandNumeral() {
96 pattern := `^[0-9]+$`

Callers

nothing calls this directly

Calls 1

RandLowerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…