()
| 76 | } |
| 77 | |
| 78 | func 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 | |
| 95 | func ExampleRandNumeral() { |
| 96 | pattern := `^[0-9]+$` |
nothing calls this directly
no test coverage detected
searching dependent graphs…