Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "v0.1.0"
Version of attrs
Variables ¶
View Source
var ErrMissingName = errors.New("requires a name argument")
View Source
var ErrRepeatedAttr = errors.New("duplicate attr name")
ErrRepeatedAttr is returned when parsing an array with repeated names
Functions ¶
This section is empty.
Types ¶
type Attr ¶
Attr is buffalo's implementation for model attributes
func (Attr) CommonType ¶
CommonType returns the common type of an attribute, this common type is used later for things like determining the database column type depending on the database.
type Attrs ¶
type Attrs []Attr
Attrs is a slice of Attr
type NamedAttrs ¶
func ParseNamedArgs ¶
func ParseNamedArgs(args ...string) (NamedAttrs, error)
func (NamedAttrs) String ¶
func (n NamedAttrs) String() string
func (NamedAttrs) Validate ¶
func (n NamedAttrs) Validate() error
Click to show internal directories.
Click to hide internal directories.