How to Create Custom Validator for ISO8601 Date with Go Validator from Go Playground and Echo Framework

I have requirement on my api that I want to build that need to parse ISO8601 formatted date and after I searched and learned about Go Validator features (https://github.com/go-playground/validator), I couldn’t find the built in validator for... Read More

How to Write Simple Middleware Using Go net/http Standard Library

Sometimes as web developer, we need to add more functionality to our http handlers, like pre processing or post processing (kind of wrapper) for some or all handlers with additional code that we call as middleware. In real world, the example of... Read More

Understanding Go Standard Http Libraries : ServeMux, Handler, Handle and HandleFunc

Go language has great built in standard library to deal with http, although they are pretty basic, we can build complete web application with it. The libraries reside at net/http package where we can find functions, interfaces, types and built in... Read More