-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is.Latitude/Longitude #185
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I faced the issue with validating geo coordinates using
is
pkg.Code example:
It returns an error like that:
GeoPosition: (Latitude: must be either a string or byte slice.).
.That confuses me a bit. I dug into the issues and found that is pkg only applicable to string/slice byte types.
So what's the way to address Latitude/Longitude validation for
float
types?I see only one option - custom validation creation, but that's an inconvenient way to handle that. Any plans to use generics for that?
The text was updated successfully, but these errors were encountered: