utilgo.mau.fi/util/exgjson Index | Files

package exgjson

import "go.mau.fi/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
v0.8.6 (latest)
Published
Mar 16, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
1 week ago

Tools for package owners.