Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶
type Base struct { // primary key flag Primary bool // Name of the field Name string // tags for this field in record struct Tags string // reference field (this value as usual should be set to ID field of other table) Reference Mapper }
Base struct with common field properties
type Mapper ¶
type Mapper interface { // GetField returns field meta data GetField() Base }
Mapper of field
type Option ¶
type Option func(*Base)
Option setup function for field
func OptReference ¶
OptReference set this field referenced to any other field
Click to show internal directories.
Click to hide internal directories.