Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StructToTpl ¶
Types ¶
type ConditionByType ¶
type ConditionByType struct {
AcceptedTypes []string
ConditionTable
}
type ConditionTable ¶
type ConditionTable struct {
// contains filtered or unexported fields
}
ConditionTable defines the template for generating a condition check for a specific type.
func GetConditionTable ¶
func GetConditionTable(operation string, fieldType common.FieldType) (ConditionTable, error)
type GenValidations ¶
func (*GenValidations) BuildFuncValidatorCode ¶
func (gv *GenValidations) BuildFuncValidatorCode() (string, error)
func (*GenValidations) BuildValidationCode ¶
func (gv *GenValidations) BuildValidationCode(fieldName string, fieldType common.FieldType, fieldValidations []*analyzer.Validation) (string, error)
type Operation ¶
type Operation struct {
ConditionByTypes []ConditionByType
}
type TestElements ¶
type TestElements struct {
// contains filtered or unexported fields
}
func DefineTestElements ¶
func DefineTestElements(fieldName string, fieldType common.FieldType, fieldValidation *analyzer.Validation) (TestElements, error)
Click to show internal directories.
Click to hide internal directories.