package exgjson

import "github.com/UristLikot/util/exgjson"

Index

Variables

var Escaper = strings.NewReplacer(
	`\`, `\\`,
	".", `\.`,
	"|", `\|`,
	"#", `\#`,
	"@", `\@`,
	"*", `\*`,
	"?", `\?`)

Escaper escapes a string for use in a GJSON path.

Functions

func Path

func Path(path ...string) string

Path returns a GJSON path pointing at a nested object, with each provided string being a key.

Source Files

gjson.go

Version
v1.0.1 (latest)
Published
Feb 15, 2024
Platform
linux/amd64
Imports
1 packages
Last checked
1 hour ago

Tools for package owners.