util

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TimestampFormat = time.RFC3339Nano

Variables

This section is empty.

Functions

func DropFieldAtPath

func DropFieldAtPath(path []string, input map[string]interface{}) error

func FormatTimestamp added in v0.8.4

func FormatTimestamp(timestamp time.Time) string

func GetValueAtPath

func GetValueAtPath(path []string, input map[string]interface{}) interface{}

func IsEmpty added in v0.5.0

func IsEmpty(value interface{}) bool

func IsTimestampString added in v0.8.4

func IsTimestampString(value string) bool

func NowTimestamp added in v0.8.4

func NowTimestamp() string

func SetValueAtPath

func SetValueAtPath(path []string, input map[string]interface{}, value interface{})

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

func ToString added in v0.1.5

func ToString(v interface{}) string

func WriteJSON

func WriteJSON(fileName string, data interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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