O'Reilly logo

Go Web Development Cookbook by Arpit Aggarwal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.v9gopkg.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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required