goformat

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

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

func NewRunner

func NewRunner(log logutils.Log,
	metaFormatter *goformatters.MetaFormatter, matcher *processors.GeneratedFileMatcher,
	opts RunnerOptions) *Runner

func (*Runner) ExitCode

func (c *Runner) ExitCode() int

func (*Runner) Run

func (c *Runner) Run(paths []string) error

type RunnerOptions

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

func NewRunnerOptions

func NewRunnerOptions(cfg *config.Config, diff, stdin bool) (RunnerOptions, error)

func (RunnerOptions) MatchAnyPattern

func (o RunnerOptions) MatchAnyPattern(path string) (bool, error)

Jump to

Keyboard shortcuts

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