Documentation ¶
Index ¶
- func IsZero(v interface{}) bool
- func ToCamelCase(s string) string
- type Association
- type CustomValidation
- type Delete
- type Errors
- type Executer
- type Insert
- type Logger
- type On
- type Relation
- func (r *Relation) And(cond string, args ...interface{}) *Relation
- func (r *Relation) Build() (string, []interface{})
- func (r *Relation) Columns(columns ...string) *Relation
- func (r *Relation) Count(column ...string) int
- func (r *Relation) Exists() bool
- func (r *Relation) Explain() error
- func (r *Relation) GetColumns() []string
- func (r *Relation) GroupBy(group string, groups ...string) *Relation
- func (r *Relation) Having(cond string, args ...interface{}) *Relation
- func (r *Relation) Limit(limit int) *Relation
- func (r *Relation) Offset(offset int) *Relation
- func (r *Relation) OrderBy(column, order string) *Relation
- func (r *Relation) Query() (*sql.Rows, error)
- func (r *Relation) QueryRow(dest ...interface{}) error
- func (r *Relation) Table(table string) *Relation
- func (r *Relation) Where(cond string, args ...interface{}) *Relation
- type Rule
- type Scope
- type Update
- type Validation
- func (v *Validation) CustomRule(c CustomValidation) *Validation
- func (v *Validation) Exclusion(collection ...string) *Validation
- func (v *Validation) Format() *format
- func (v *Validation) Inclusion(collection ...string) *Validation
- func (v *Validation) Length() *length
- func (v *Validation) Numericality() *numericality
- func (v *Validation) OnCreate() *Validation
- func (v *Validation) OnSave() *Validation
- func (v *Validation) OnUpdate() *Validation
- func (v *Validation) Presence() *presence
- func (v *Validation) Rule() *Validation
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToCamelCase ¶
Types ¶
type Association ¶
type CustomValidation ¶
type CustomValidation func(errors *Errors)
type Relation ¶
func (*Relation) GetColumns ¶
type Rule ¶
type Rule interface {
Rule() *Validation
}
type Validation ¶
type Validation struct {
// contains filtered or unexported fields
}
func CustomRule ¶
func CustomRule(c CustomValidation) *Validation
func MakeRule ¶
func MakeRule() *Validation
func (*Validation) CustomRule ¶
func (v *Validation) CustomRule(c CustomValidation) *Validation
func (*Validation) Exclusion ¶
func (v *Validation) Exclusion(collection ...string) *Validation
func (*Validation) Format ¶
func (v *Validation) Format() *format
func (*Validation) Inclusion ¶
func (v *Validation) Inclusion(collection ...string) *Validation
func (*Validation) Length ¶
func (v *Validation) Length() *length
func (*Validation) Numericality ¶
func (v *Validation) Numericality() *numericality
func (*Validation) OnCreate ¶
func (v *Validation) OnCreate() *Validation
func (*Validation) OnSave ¶
func (v *Validation) OnSave() *Validation
func (*Validation) OnUpdate ¶
func (v *Validation) OnUpdate() *Validation
func (*Validation) Presence ¶
func (v *Validation) Presence() *presence
func (*Validation) Rule ¶
func (v *Validation) Rule() *Validation
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func NewValidator(rule *Validation) Validator
func (Validator) Custom ¶
func (v Validator) Custom() CustomValidation
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
generated by argen; DO NOT EDIT generated by argen; DO NOT EDIT generated by argen; DO NOT EDIT generated by argen; DO NOT EDIT
|
generated by argen; DO NOT EDIT generated by argen; DO NOT EDIT generated by argen; DO NOT EDIT generated by argen; DO NOT EDIT |
Click to show internal directories.
Click to hide internal directories.