Versions in this module Expand all Collapse all v1 v1.0.0 Aug 2, 2016 Changes in this version + func Execute(dsl func(), def Definition) bool + func FailOnError(err error) + func IncompatibleDSL() + func InvalidArgError(expected string, actual interface{}) + func IsTopLevelDefinition() bool + func PrintFilesOrFail(files []string, err error) + func Register(r Root) + func ReportError(fm string, vals ...interface{}) + func Reset() + func Run() error + type Definition interface + Context func() string + func CurrentDefinition() Definition + type DefinitionSet []Definition + type Error struct + File string + GoError error + Line int + func (de *Error) Error() string + type Finalize interface + Finalize func() + type MetadataDefinition map[string][]string + type MultiError []*Error + var Errors MultiError + func (m MultiError) Error() string + type Root interface + DSLName func() string + DependsOn func() []Root + IterateSets func(SetIterator) + Reset func() + func SortRoots() ([]Root, error) + type SetIterator func(s DefinitionSet) error + type Source interface + DSL func() func() + type TopLevelDefinition struct + func (t *TopLevelDefinition) Context() string + type TraitDefinition struct + DSLFunc func() + Name string + func (t *TraitDefinition) Context() string + func (t *TraitDefinition) DSL() func() + type Validate interface + Validate func() error + type ValidationDefinition struct + Format string + MaxLength *int + Maximum *float64 + MinLength *int + Minimum *float64 + Pattern string + Required []string + Values []interface{} + func (v *ValidationDefinition) AddRequired(required []string) + func (v *ValidationDefinition) Context() string + func (v *ValidationDefinition) Dup() *ValidationDefinition + func (v *ValidationDefinition) HasRequiredOnly() bool + func (v *ValidationDefinition) Merge(other *ValidationDefinition) + type ValidationErrors struct + Definitions []Definition + Errors []error + func (verr *ValidationErrors) Add(def Definition, format string, vals ...interface{}) + func (verr *ValidationErrors) AddError(def Definition, err error) + func (verr *ValidationErrors) AsError() *ValidationErrors + func (verr *ValidationErrors) Error() string + func (verr *ValidationErrors) Merge(err *ValidationErrors)