Documentation ¶
Index ¶
- Constants
- Variables
- func FieldRecipientsFromType(logger logging.Logger, sqlFields []string, ...) []interface{}
- func FieldRecipientsFromValueOf(logger logging.Logger, sqlFields []string, ...) []interface{}
- func MapFromPtrType(aType interface{}, include []reflect.Kind, exclude []reflect.Kind) (string, map[string]reflect.StructField, error)
- func MapFromTypeOf(tod reflect.Type, include []reflect.Kind, exclude []reflect.Kind) (string, map[string]reflect.StructField, error)
Constants ¶
View Source
const ( // SubTagNameFieldName holds the name of a sub-tag containing the sql field for a struct attribute. SubTagNameFieldName = "field_name" // TagName holds the name of the tag that contains all of gaum possible sub tags. TagName = "gaum" )
Variables ¶
View Source
var ErrInquisition = errors.Errorf("found an unexpected type")
ErrInquisition indicates that the type passed was not one expected.
View Source
var ErrNoPointer = errors.Errorf("destination needs to be pointer")
ErrNoPointer indicates that the passed type is not a pointer.
Functions ¶
func FieldRecipientsFromType ¶
func FieldRecipientsFromType(logger logging.Logger, sqlFields []string, fieldMap map[string]reflect.StructField, aType interface{}) []interface{}
FieldRecipientsFromType returns an array of pointer to attributes from the passed in instance.
func FieldRecipientsFromValueOf ¶
func FieldRecipientsFromValueOf(logger logging.Logger, sqlFields []string, fieldMap map[string]reflect.StructField, vod reflect.Value) []interface{}
FieldRecipientsFromValueOf returns an array of pointer to attributes from the passed in reflect.Value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.