Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Widget ¶
type Widget struct { ID uuid.UUID `xml:"id" db:"id"` CreatedAt time.Time `xml:"created_at" db:"created_at"` UpdatedAt time.Time `xml:"updated_at" db:"updated_at"` Name string `xml:"name" db:"name"` Description string `xml:"description" db:"description"` Age int `xml:"age" db:"age"` Bar nulls.String `xml:"bar" db:"bar"` }
func (Widget) String ¶
func (w Widget) String() string
String is not required by pop and may be deleted
func (*Widget) Validate ¶
func (w *Widget) Validate(tx *pop.Connection) (*validate.Errors, error)
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
func (*Widget) ValidateCreate ¶
func (w *Widget) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)
ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.
func (*Widget) ValidateUpdate ¶
func (w *Widget) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)
ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.
Click to show internal directories.
Click to hide internal directories.