struct_filter

package
v8.0.7+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2020 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTime

func ParseTime(s string) (time.Time, error)

Types

type Field

type Field struct {
	Column string

	OpValue string

	IsSlice bool

	Scan   ScanFunc
	Append types.AppenderFunc
	// contains filtered or unexported fields
}

func (*Field) NoDecode

func (f *Field) NoDecode() bool

func (*Field) Omit

func (f *Field) Omit(value reflect.Value) bool

func (*Field) Value

func (f *Field) Value(strct reflect.Value) reflect.Value

type ScanFunc

type ScanFunc func(v reflect.Value, values []string) error

type Struct

type Struct struct {
	TableName string
	Fields    []*Field
}

func GetStruct

func GetStruct(typ reflect.Type) *Struct

func NewStruct

func NewStruct(typ reflect.Type) *Struct

func (*Struct) Field

func (s *Struct) Field(name string) *Field

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL