struct_filter

package
v7.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 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 {
	// contains filtered or unexported fields
}

func (*Field) Append

func (f *Field) Append(b []byte, value reflect.Value) []byte

func (*Field) NoDecode

func (f *Field) NoDecode() bool

func (*Field) Omit

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

func (*Field) Scan

func (f *Field) Scan(value reflect.Value, values []string) error

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 {
	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