Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatString ¶
FormatString is a convenience function that formats a template string.
Types ¶
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter handles formatting of vuego templates.
func NewFormatter ¶
func NewFormatter() *Formatter
NewFormatter creates a new formatter with default options.
func NewFormatterWithOptions ¶
func NewFormatterWithOptions(opts FormatterOptions) *Formatter
NewFormatterWithOptions creates a new formatter with custom options.
type FormatterOptions ¶
type FormatterOptions struct {
IndentWidth int // Number of spaces per indent level (default: 2)
InsertFinal bool // Insert final newline (default: true)
}
FormatterOptions provides configuration for formatting.
func DefaultFormatterOptions ¶
func DefaultFormatterOptions() FormatterOptions
DefaultFormatterOptions returns the default formatting options.
Click to show internal directories.
Click to hide internal directories.