pluck

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pluck

func Pluck(fields ...Field) gloo.Command[[]byte, []byte]

Pluck returns a command that keeps only the named fields of each JSON object, emitting one compact object per line. Objects that contain none of the named fields are dropped, as are non-object values.

Shell analogue: jq '{name, age}'

Types

type Field

type Field string

Field names one key of a JSON object.

Jump to

Keyboard shortcuts

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