code: func ValidateIPFromString(ipaddr string, fldPath *field.Path) field.ErrorList {
  	allErrs := field.ErrorList{}
  	if net.ParseIP(ipaddr) == nil {
  		allErrs = append(allErrs, field.Invalid(fldPath, ipaddr, "ip address is not valid"))
  	}
  	return allErrs
  }
docs: // ValidateIPFromString validates ip address