util

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

func JsonStructToMap(s interface{}, m *map[string]interface{}) error

JsonStructToMap merges s on top of m via `json.Marshal` @todo implement this properly with reflection (or maybe not)

func PadLeft

func PadLeft(str, pad string, length int) string

func PadRight

func PadRight(str, pad string, length int) string

func SecondsSince

func SecondsSince(start time.Time) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL