📄️ 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 two helper functions called z.Issues.SanitizeMap(issueMap) and z.Issues.SanitizeList(issueList) that will return a map of strings of the issue messages (stripping out the internal error). So, if you do not mind sending issue messages to your users in the same form zog returns them, you can do something like this: