Documentation ¶ Index ¶ func Pluck(fields ...Field) gloo.Command[[]byte, []byte] type Field 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. Source Files ¶ View all Source files command.go Click to show internal directories. Click to hide internal directories.