kpath

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Split

func Split(path string) ([]string, error)

Split parses a kpath string into an array of parts. Kpath parts are delimited either by a period (ex: partA.partB) or brackets and quotes: (ex: partA["partB"]). To index an array, use brackets with an numeric index (ex: partA[0]). All delimiters may be used in combination (ex: partA.partB["partC"].partD[1]). Period delimiting is preferred when indexing a map, unless the part contains a period, in which case brackets and quotes should be used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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