path

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package path represents a notation for accessing elements in JSON

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Path

type Path struct {
	OmitEmpty  bool
	OmitAlways bool
	// contains filtered or unexported fields
}

func ComputePath

func ComputePath(field reflect.StructField) Path

func (Path) Len

func (p Path) Len() int

func (Path) Pull

func (p Path) Pull() (Segment, Path)

func (Path) String

func (p Path) String() string

type Segment

type Segment struct {
	Name string
	List bool
}

Jump to

Keyboard shortcuts

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