Documentation
¶
Index ¶
- Constants
- func DropFieldAtPath(path []string, input map[string]interface{}) error
- func FormatTimestamp(timestamp time.Time) string
- func GetValueAtPath(path []string, input map[string]interface{}) interface{}
- func IsEmpty(value interface{}) bool
- func IsTimestampString(value string) bool
- func NowTimestamp() string
- func SetValueAtPath(path []string, input map[string]interface{}, value interface{})
- func ToKeyString(v interface{}) string
- func ToString(v interface{}) string
- func WriteJSON(fileName string, data interface{}) error
Constants ¶
View Source
const TimestampFormat = time.RFC3339Nano
Variables ¶
This section is empty.
Functions ¶
func DropFieldAtPath ¶
func FormatTimestamp ¶ added in v0.8.4
func GetValueAtPath ¶
func IsTimestampString ¶ added in v0.8.4
func NowTimestamp ¶ added in v0.8.4
func NowTimestamp() string
func SetValueAtPath ¶
func ToKeyString ¶ added in v0.8.0
func ToKeyString(v interface{}) string
ToKeyString converts a value to a string suitable for use as a map key, avoiding scientific notation for numeric values
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.