formatter

package
v0.0.0-...-f282515 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(src []byte) ([]byte, error)

func FormatFile

func FormatFile(filename string) ([]byte, error)

FormatFile formats a single file

func Process

func Process(filename string, src []byte, w io.Writer) error

Process processes the input and writes the formatted output to w. The results of processing the source are the same as calling Format.

Types

type Formatter

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

Jump to

Keyboard shortcuts

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