formatter

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNeedsFormatting = errors.New("file needs formatting")

Functions

func FormatDirectory

func FormatDirectory(dir string, opts Options) error

func FormatFile

func FormatFile(filePath string, opts Options) error

Types

type Options added in v1.1.0

type Options struct {
	CheckOnly       bool
	ExcludePatterns []string
}

Jump to

Keyboard shortcuts

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