Help us shape the future of Go! Take the 2026 Go Developer Survey

yaml

package
v0.17.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package yaml provides YAML syntax highlighting for clog.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Highlight

func Highlight(s string, styles *style.YAML) string

Highlight applies syntax highlighting to s using the provided styles. Highlighting is best-effort: if the lexer does not round-trip the input exactly, s is returned unchanged to preserve the caller's formatting. Returns s unchanged when styles is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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