Documentation
¶
Overview ¶
Package format provides formatting utilities for Tony documents.
Usage ¶
// Format a Tony document formatted, err := format.Format(input) // Format with specific options formatted, err := format.Format(input, format.WithIndent(2))
Formatting preserves semantic content while applying consistent style.
Related Packages ¶
- github.com/signadot/tony-format/go-tony/parse - Parse text to IR
- github.com/signadot/tony-format/go-tony/encode - Encode IR to text
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadFormat = errors.New("bad format")
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Format int
func ParseFormat ¶
func (Format) MarshalText ¶
func (*Format) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.