Documentation ¶
Index ¶
- Variables
- func ConvertStringToTime(timeString string) (t time.Time, err error)
- func Decode(source interface{}, target interface{}, vld *validator.Validate) errors.Error
- func DecodeHook(f reflect.Type, t reflect.Type, data interface{}) (interface{}, error)
- func DecodeMapStruct(input map[string]interface{}, result interface{}, zeroFields bool) errors.Error
- func Iso8601TimeToTime(iso8601Time *Iso8601Time) *time.Time
- type DateTimeFormatItem
- type Iso8601Time
- func (jt Iso8601Time) MarshalJSON() ([]byte, error)
- func (jt *Iso8601Time) Scan(v interface{}) error
- func (jt *Iso8601Time) String() string
- func (jt *Iso8601Time) ToNullableTime() *time.Time
- func (jt *Iso8601Time) ToTime() time.Time
- func (jt *Iso8601Time) UnmarshalJSON(b []byte) error
- func (jt *Iso8601Time) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DateTimeFormats []DateTimeFormatItem
DateTimeFormats FIXME ...
Functions ¶
func ConvertStringToTime ¶
ConvertStringToTime FIXME ...
func Decode ¶
Decode decodes `source` into `target`. Pass an optional validator to validate the target.
func DecodeHook ¶
func DecodeMapStruct ¶
func DecodeMapStruct(input map[string]interface{}, result interface{}, zeroFields bool) errors.Error
DecodeMapStruct with time.Time and Iso8601Time support
func Iso8601TimeToTime ¶
func Iso8601TimeToTime(iso8601Time *Iso8601Time) *time.Time
Iso8601TimeToTime FIXME ...
Types ¶
type DateTimeFormatItem ¶
DateTimeFormatItem FIXME ... TODO: move this to helper
type Iso8601Time ¶
type Iso8601Time struct {
// contains filtered or unexported fields
}
Iso8601Time is type time.Time
func (Iso8601Time) MarshalJSON ¶
func (jt Iso8601Time) MarshalJSON() ([]byte, error)
MarshalJSON FIXME ...
func (*Iso8601Time) String ¶
func (jt *Iso8601Time) String() string
func (*Iso8601Time) ToNullableTime ¶
func (jt *Iso8601Time) ToNullableTime() *time.Time
ToNullableTime FIXME ...
func (*Iso8601Time) UnmarshalJSON ¶
func (jt *Iso8601Time) UnmarshalJSON(b []byte) error
UnmarshalJSON FIXME ...
Click to show internal directories.
Click to hide internal directories.