optimize

package
v0.0.0-...-99afac6 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Packages

func Packages(ctx context.Context, a Args) error

Packages optimizes all Go packages found under the specified root directory.

Types

type Args

type Args struct {
	// Root is the root directory to start searching for Go packages.
	Root string
	// GoExecPath is the path to the Go executable.
	GoExecPath string
	// AlignPath is the path to the betteralign binary.
	AlignPath string
	// FieldAlign indicates whether to perform field alignment.
	FieldAlign bool
	// InterfaceReplacement indicates whether to perform interface replacement.
	InterfaceReplacement bool
	// Generated indicates whether to process generated files.
	Generated bool
	// RunTests indicates whether to run tests on packages with test files.
	RunTests bool
}

Args holds the arguments for the Packages function.

Jump to

Keyboard shortcuts

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