(s string)
| 650 | var uuidRe = regexp.MustCompile(`^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$`) |
| 651 | |
| 652 | func isValidUUID(s string) bool { return uuidRe.MatchString(s) } |
| 653 | |
| 654 | func randomUUID() string { |
| 655 | buf := make([]byte, 16) |
no outgoing calls
no test coverage detected