coloryaml

package
v0.0.0-...-152b8de Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Colorize

func Colorize(s string) string

Colorize takes a serialized YAML string and returns it with ANSI color codes.

func Printer

func Printer() *printer.Printer

Printer returns a printer.Printer pre-configured to add ANSI color codes to YAML.

func WriteString

func WriteString(w io.Writer, s string) (int, error)

WriteString writes a YAML string to the given io.Writer. The written data will be colorized if termx.IsColor returns true, and the output will always end with a new line character.

Types

This section is empty.

Jump to

Keyboard shortcuts

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