Data validation in Golang
Almost every application requires high data integrirty and quality. Very likely is its algorithms to behave weird and produce unexpected results due to invalid input. An important aspect of software development is data validation. In this article we will explore govalidate package that helps us to validate and sanitize any string, struct and slice in Go. The package itself is very infulenced by its javascript predaccessor validator.js. Installation Like any other Go package we should install it first:...