autoformat

package
v2.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoDetectFormatter

func AutoDetectFormatter(filename string) (format.Provider, error)

AutoDetectFormatter attempts to find a suitable formatter based on the filename

func FormatFile

func FormatFile(ctx context.Context, formatType string, filename string, input io.Reader, cfg format.ConfigurationProvider) (io.Reader, error)

FormatFile handles the common formatting logic for both CLI and WASM

func GetFormatter

func GetFormatter(formatType string) (format.Provider, error)

GetFormatter returns the appropriate formatter for the given format type and filename

Types

This section is empty.

Jump to

Keyboard shortcuts

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