maputil

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PruneObject

func PruneObject(obj map[string]interface{}, paths []Path) (map[string]interface{}, error)

func RemovePath

func RemovePath(obj map[string]interface{}, path Path) (map[string]interface{}, error)

Types

type Path

type Path []string

func ParsePath

func ParsePath(path string) (Path, error)

func (Path) Head

func (p Path) Head() string

func (Path) Tail

func (p Path) Tail() Path

Jump to

Keyboard shortcuts

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