Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
If you just want to assert that certain strings are convertible into certain types, https://github.com/asaskevich/govalidator contains a lot of handy functions to do just that.
I started writing something to do this (dataframe). It will generate a dataframe (a collection of slices of different types, all the same length, each corresponding to a column). It tries to figure out from the first N lines what the type of each column is. There's support for int64, float64, bool and string-type columns. I haven't touched it for a year but I recall it was in a working state when I stopped.
Related posts
- Is there any equivalent to pydantic, serde, etc?
- API completa em Golang - Parte 7
- Vest: Declarative validations framework inspired by unit testing libraries
- A meticulous JWT API Authentication guide you've been looking for
- Is there any point in sanitizing (stripping/encoding) user inputs when all output will be encoded by the app?