code: func generateInputValidator(packageName, dir string) error {
  	var ctx = struct {
  		PackageName string
  	}{
  		PackageName: packageName,
  	}
  	fileName := filepath.Join(dir, inputValidatorFileResult)
  	return commons.GenerateFile(ctx, inputValidatorTemplateLocation, "struct_input_validator_template", fileName, true)
  }
docs: // generate input validator helper file