Documentation
¶
Index ¶
- func DecodeWithExtraFields(data map[string]interface{}, v interface{}) (map[string]interface{}, error)
- func JsonStructToMap(s interface{}, m *map[string]interface{}) error
- func PadLeft(str, pad string, length int) string
- func PadRight(str, pad string, length int) string
- func SecondsSince(start time.Time) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeWithExtraFields ¶
func DecodeWithExtraFields(data map[string]interface{}, v interface{}) (map[string]interface{}, error)
DecodeWithExtraFields decodes generic data into
func JsonStructToMap ¶
JsonStructToMap merges s on top of m via `json.Marshal` @todo implement this properly with reflection (or maybe not)
func SecondsSince ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.