inline

command
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

The inline command applies the inliner to the specified packages of Go source code. Run this command to report all fixes:

$ go run ./go/analysis/passes/inline/cmd/inline packages...

Run this command to preview the changes:

$ go run ./go/analysis/passes/inline/cmd/inline -fix -diff packages...

And run this command to apply them:

$ go run ./go/analysis/passes/inline/cmd/inline -fix packages...

This internal command is not officially supported. In the long term, we plan to migrate this functionality into "go fix"; see Go issues https//go.dev/issue/32816, 71859, 73605.

Jump to

Keyboard shortcuts

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