yamlfmt

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package yamlfmt implements the "fmt" command — formatting YAML (preserving comments) into a canonical form.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

TODO strict mode

func NewPrinter

func NewPrinter(writer io.Writer) *Printer

func NewPrinterWithOpts

func NewPrinterWithOpts(writer io.Writer, opts PrinterOpts) *Printer

func (*Printer) Print

func (p *Printer) Print(val interface{})

func (*Printer) PrintStr

func (p *Printer) PrintStr(val interface{}) string

type PrinterOpts

type PrinterOpts struct{}

Jump to

Keyboard shortcuts

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