You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: