Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SqlNullTimeToStringConverter = copier.TypeConverter{ SrcType: sql.NullTime{}, DstType: copier.String, Fn: func(src interface{}) (interface{}, error) { s, ok := src.(sql.NullTime) if !ok { return nil, errors.New("src type not matching") } if !s.Valid { return "", nil } return s.Time.Format(constant.DateTime), nil }, } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.