Documentation ¶
Index ¶
- func GetAvailableTypes() []string
- func Register(name string, validator Validator)
- type Error
- type ErrorCollection
- func (ec ErrorCollection) FileError(file string, message string, params ...interface{})
- func (ec ErrorCollection) FileHasErrors(file string) bool
- func (ec ErrorCollection) GetFiles() []string
- func (ec ErrorCollection) HasErrors() bool
- func (ec ErrorCollection) RecordError(file string, record uint32, message string, params ...interface{})
- func (ec ErrorCollection) ValueError(file string, record uint32, column string, message string, ...)
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvailableTypes ¶
func GetAvailableTypes() []string
Types ¶
type ErrorCollection ¶
func NewErrorCollection ¶
func NewErrorCollection() ErrorCollection
func (ErrorCollection) FileError ¶
func (ec ErrorCollection) FileError( file string, message string, params ...interface{}, )
func (ErrorCollection) FileHasErrors ¶
func (ec ErrorCollection) FileHasErrors(file string) bool
func (ErrorCollection) GetFiles ¶
func (ec ErrorCollection) GetFiles() []string
func (ErrorCollection) HasErrors ¶
func (ec ErrorCollection) HasErrors() bool
func (ErrorCollection) RecordError ¶
func (ec ErrorCollection) RecordError( file string, record uint32, message string, params ...interface{}, )
func (ErrorCollection) ValueError ¶
func (ec ErrorCollection) ValueError( file string, record uint32, column string, message string, params ...interface{}, )
type Validator ¶
type Validator func(path string, files []string) ErrorCollection
func NewValidator ¶
Click to show internal directories.
Click to hide internal directories.