📄️ Using Zog with HTML templates
(In this example I'll use go templ, but you can use any template engine)
📄️ Using Zog in a REST API
Zog providers a helper function called z.Errors.SanitizeMap(errsMap) that will return a map of strings of the error messages (stripping out the internal error). So, if you do not mind sending errors to your users in the same form zog returns them, you can do something like this: