extract

package
v1.3.0-testing Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(rawMessage *jsoniter.RawMessage, extractors ...Extractor)

Extract parses RAW JSON extracting tasty things by calling Parsed()

func Parsed

func Parsed(result gjson.Result, extractors ...Extractor)

Parsed walks parsed JSON extracting tasty things (use if you already parsed the JSON)

Types

type Extractor

type Extractor interface {
	Extract(key, value gjson.Result)
}

Jump to

Keyboard shortcuts

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