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

toml

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: 4 Imported by: 0

Documentation

Overview

Package toml provides TOML syntax highlighting for clog.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Highlight

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

Highlight applies syntax highlighting to s using the provided styles. Original formatting is preserved. Returns s unchanged when styles is nil.

The scanner is line-oriented and handles comments, table headers, key-value pairs, and all TOML value types including multi-line strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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