github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/util/v6manifestparser/validation.go (about) 1 package v6manifestparser 2 3 type validatorFunc func(Parser) error 4 5 func (parser Parser) Validate() error { 6 var err error 7 8 for _, validator := range parser.validators { 9 err = validator(parser) 10 if err != nil { 11 return err 12 } 13 } 14 15 return nil 16 }