mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2024-12-22 17:38:00 +00:00
11 lines
128 B
Go
11 lines
128 B
Go
package uuid
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
func IsValid(u string) bool {
|
|
_, err := uuid.Parse(u)
|
|
return err == nil
|
|
}
|