parser

package
v0.0.0-...-c25980c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetItem

func GetItem(text string, item string) ([]string, error)

For a given JSON payload string, extract a specific item from the payload. The item specification is a dot-notation string that can include integer indices and string map key values. The value is always returned as a string representation.

func GetOneItem

func GetOneItem(text string, item string) (string, error)

func RemoveComments

func RemoveComments(data []byte) []byte

For any payload that is really a text file, remove any lines that start with a "#" symbol. This is a common practice for comments in text files. This lets us put comments in JSON files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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