coloryaml

package module
v0.0.0-...-3c5dcda Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 10 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 Fprintln

func Fprintln(w io.Writer, obj any) error

Fprintln serializes the value provided into a YAML document with ANSI color codes, and writes the result to the given io.Writer.

func Printer

func Printer() *printer.Printer

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

func Println

func Println(obj any) error

Println serializes the value provided into a YAML document with ANSI color codes, and writes the result to os.Stdout.

func Sprintln

func Sprintln(obj any) (string, error)

Sprintln serializes the value provided into a YAML document with ANSI color codes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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