The missing functions for map[string]interface{}
This package has various utility functions and wraps all the ugly details of dealing with interface{}
type.
Feature Summary:
- Automatic Type Conversion from various formats to
int
,float64
,string
, andtime.Time
. string
totime.Time
auto conversion accepts the following time formats:- ISO8601
- RFC1123/RFC2822
- Common Log Format
- Golang
time.Time.String()
format. - Ruby
Time#to_s
default format.
Slice
andExcept
to filter out keys.Select
andReject
to filter out key/value pairs using a custom function.Reduce
to reduce your map using a custom function.- Parse
url.Values
to make it easier to read HTTP form data. Even with nested hashes.