mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2025-09-21 06:39:09 +00:00
New whatismydns feature (#29)
This commit is contained in:
10
internal/validator/uuid/uuid.go
Normal file
10
internal/validator/uuid/uuid.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package uuid
|
||||
|
||||
import (
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
func IsValid(u string) bool {
|
||||
_, err := uuid.Parse(u)
|
||||
return err == nil
|
||||
}
|
Reference in New Issue
Block a user