jsonpath

package
v0.159.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package jsonpath implements a subset of JSON path over maps and slices

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKeys

func GetKeys(data interface{}, jsonKeys ...string) interface{}

GetKeys retrieves the value at the given path by following each key in data. If data is not a map or if a key is not present, it returns nil.

func SetKeys

func SetKeys(data interface{}, value interface{}, jsonKeys ...string) map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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