title: Handling nested struct in Go Validator.v2
body: <p>I have been using Go Validator.v2 for field validations and it works elegantly for my non-struct typed fields. However, when it comes to handling struct-based fields (within the original struct), there is no documentation about it whatsoever. <a href="https://pkg.go.dev/mod/gopkg.in/validator.v2" rel="noreferrer">https://pkg.go.dev/mod/gopkg.in/validator.v2</a></p>
  <p>I know the v10 has support for it, but I prefer the built-in regex support in v2. Is there anyway I can customise validation for these struct-based fields? e.g.</p>
  <pre><code>type user struct {
     Name            string   `validate:&quot;nonzero&quot;`
     Age             int      `validate:&quot;min=21&quot;`
     BillingAddress  *Address  ???
  
  }
  </code></pre>
  <p>I wish to validate the BillingAddress field as shown above, or do I simply write the validation tags in the <strong>Address</strong> model and it will automatically validate it, too?</p>
  <p>Thanks and any pointers are appreciated!</p>