fmtcmd

package
v0.2.680 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(w io.Writer, args Arguments) (err error)

Types

type Arguments added in v0.2.590

type Arguments struct {
	ToStdout    bool
	Files       []string
	LogLevel    string
	WorkerCount int
}

type Formatter added in v0.2.590

type Formatter struct {
	Log         *slog.Logger
	Dir         string
	Process     func(fileName string) error
	WorkerCount int
}

func NewFormatter added in v0.2.590

func NewFormatter(log *slog.Logger, dir string, process func(fileName string) error, workerCount int) *Formatter

func (*Formatter) Run added in v0.2.590

func (f *Formatter) Run() (err error)

Jump to

Keyboard shortcuts

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