shfmt

package
v2.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter struct {
}

Formatter implements the format.Provider interface for shell scripts.

func NewFormatter

func NewFormatter() *Formatter

NewFormatter creates a new shell formatter.

func (*Formatter) Format

func (f *Formatter) Format(ctx context.Context, cfg format.Configuration, read io.Reader) (io.Reader, error)

Format parses and formats shell code.

func (*Formatter) Targets

func (f *Formatter) Targets() []string

Targets returns the file patterns this formatter handles.

Jump to

Keyboard shortcuts

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