- type Attr
- type Attrs
- type NamedAttrs
const Version = "v0.1.0"
Version of attrs
ErrRepeatedAttr is returned when parsing an array with repeated names
This section is empty.
Attr is buffalo's implementation for model attributes
Parse takes a string like name:commonType:goType and turns it into an Attr
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.
GoType returns the Go type for an Attr based on its commonType
type Attrs Attr
Attrs is a slice of Attr
ParseArgs parses passed string args into Attrs