text

package
v2.2.6 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package text implements text output formatting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TextDriver

type TextDriver struct{}

TextDriver formats flow messages via text or string serializers.

func (*TextDriver) Format

func (d *TextDriver) Format(data interface{}) ([]byte, []byte, error)

Format marshals the payload via TextMarshaler or Stringer, preserving a Key when available.

func (*TextDriver) Init

func (d *TextDriver) Init() error

Init finalizes runtime configuration for the driver.

func (*TextDriver) Prepare

func (d *TextDriver) Prepare() error

Prepare performs any one-time setup for the driver.

Jump to

Keyboard shortcuts

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