Documentation ¶
Index ¶
- func Copy(dst, src interface{}) error
- func JSONCopy(dst, src interface{})
- func NewCopier(opts ...Option) *copier
- func ParseFieldByCopyTag(field StructField) string
- func ParseFieldByJSONTag(field StructField) string
- func ParseFiledByName(field StructField) string
- type Copier
- type FieldParseFunc
- type Int64ToTimeCopier
- type Option
- type StructField
- type TimeToInt64Copier
- type TypePair
- type TypedCopier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFieldByCopyTag ¶
func ParseFieldByCopyTag(field StructField) string
func ParseFieldByJSONTag ¶
func ParseFieldByJSONTag(field StructField) string
func ParseFiledByName ¶
func ParseFiledByName(field StructField) string
Types ¶
type FieldParseFunc ¶
type FieldParseFunc func(field StructField) string
type Int64ToTimeCopier ¶
type Int64ToTimeCopier struct{}
-------------
func (Int64ToTimeCopier) Copy ¶
func (d Int64ToTimeCopier) Copy(dstType, srcType reflect2.Type, dstPtr, srcPtr unsafe.Pointer)
func (Int64ToTimeCopier) Pairs ¶
func (d Int64ToTimeCopier) Pairs() []TypePair
type Option ¶
type Option func(cpr *copier)
func WithCacheSize ¶
func WithParseFunc ¶
func WithParseFunc(fn FieldParseFunc) Option
type StructField ¶ added in v1.1.0
type StructField struct { reflect.StructField // contains filtered or unexported fields }
type TimeToInt64Copier ¶
type TimeToInt64Copier struct{}
-------------
func (TimeToInt64Copier) Copy ¶
func (d TimeToInt64Copier) Copy(dstType, srcType reflect2.Type, dstPtr, srcPtr unsafe.Pointer)
func (TimeToInt64Copier) Pairs ¶
func (d TimeToInt64Copier) Pairs() []TypePair
Click to show internal directories.
Click to hide internal directories.