📄️ zhttp
For Zog provides a built in helper package called zhttp that helps parse JSON, Forms or Query Params. Helps parse a request into a struct by using the Content-Type header to infer the type of the request. Example usage below:
📄️ zenv
zenv helps validate environment variables. Since os.Getenv does not perform any validation or type coercion this is a great way to ensure you didn't forget to set an environment variable. Which we have all done at some point....
📄️ i18n
Zog has built in support for i18n. It has built in English and Spanish error messages. But you can also add your own custom languages or even make a package for a new language very easily.
📄️ zconst
zconst is a helper package that provides constants for common use cases such as error codes, Zog Types and more. Every constant here is just a string so using zconst is completely optional. This is the entire code of the zconst package as of version 0.11.0: