output

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportAsync

func ExportAsync(filename string, v resp.RedisValue, values iter.Seq[resp.RedisValue], typeHint string) error

ExportAsync writes a RedisValue or an iterator of RedisValues to a file.

C# equivalent: public static async Task ExportAsync(Connection connection, string filename, ParsedCommand command)

func PipeRedisValue

func PipeRedisValue(w io.Writer, v resp.RedisValue, shellCmd string) error

PipeRedisValue pipes a RedisValue to a shell command.

C# equivalent: public static void PipeRedisValue(ParsedCommand command, RedisValue value)

func PrintRedisValue

func PrintRedisValue(w io.Writer, v resp.RedisValue, opts PrintOpts)

PrintRedisValue prints a RedisValue to the given writer with optional ANSI colors.

C# equivalent: public static async Task PrintRedisValue(RedisValue value, string padding = "", bool color = true, string type = "", bool newline = true, ISerializer serializer = null)

func PrintRedisValues

func PrintRedisValues(w io.Writer, r io.Reader, values iter.Seq[resp.RedisValue], opts PrintOpts, warningAt int)

PrintRedisValues prints an iterator of RedisValues with pagination.

C# equivalent: public static async Task PrintRedisValues(IEnumerable<RedisValue> values, int warningAt = 100, string type = "")

Types

type PrintOpts

type PrintOpts struct {
	Color      bool
	Serializer serializer.Serializer
	Padding    string
	TypeHint   string // e.g., "hash", "stream"
	Newline    bool
}

PrintOpts configures how a RedisValue is printed.

Jump to

Keyboard shortcuts

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