Validating your first HTML form

Most of the time, we have to validate a client's input before processing it, which can be achieved through the number of external packages in Go, such as gopkg.in/go-playground/validator.v9, gopkg.in/validator.v2, and github.com/asaskevich/govalidator.

In this recipe, we will be working with the most famous and commonly used validator, github.com/asaskevich/govalidator, to validate our HTML form.

Get Go Web Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.