Documentation ¶
Overview ¶
generated by forge -type=ExampleType; DO NOT EDIT
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExampleTypeInvalid = errors.New("ExampleType is invalid")
Functions ¶
This section is empty.
Types ¶
type BuzzFeed ¶
type BuzzFeed struct { ID int64 `db:"id" json:"id"` Name string `db:"name" json:"name"` BuzzType ExampleType `db:"buzz_type" json:"buzzType"` Description string `db:"description" json:"description"` Details Feed `db:"details" json:"details"` CreatedAt int64 `db:"created_at" json:"createdAt"` UpdatedAt int64 `db:"updated_at" json:"updatedAt"` }
FIXME: go:generate forge model --type BuzzFeed --tmpl ./db/q.tmpl --suffix _q
type CustomDocument ¶
type ExampleType ¶
type ExampleType int
func (ExampleType) MarshalJSON ¶
func (r ExampleType) MarshalJSON() ([]byte, error)
MarshalJSON is generated so ExampleType satisfies json.Marshaler.
func (*ExampleType) Scan ¶
func (r *ExampleType) Scan(src interface{}) error
Value is generated so ExampleType satisfies db row driver.Scanner.
func (ExampleType) String ¶
func (r ExampleType) String() string
String is generated so ExampleType satisfies fmt.Stringer.
func (*ExampleType) UnmarshalJSON ¶
func (r *ExampleType) UnmarshalJSON(data []byte) error
UnmarshalJSON is generated so ExampleType satisfies json.Unmarshaler.
func (ExampleType) Validate ¶
func (r ExampleType) Validate() error
Validate verifies that value is predefined for ExampleType.
Click to show internal directories.
Click to hide internal directories.