copiedloopvarfixer

command module
v0.0.0-...-9489fa1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

copiedloopvarfixer

Fixes your Go code's copied loop vars

Go 1.22 resolves the long-standing loop variable gotcha.

This is a small program you can use to recursively find and remove copied loop variables in your codebase.

Usage

go get github.com/martinbaillie/copiedloopvarfixer
go run github.com/martinbaillie/copiedloopvarfixer <dir_to_walk>

Disclaimer

Check the files changed by this program and ensure your code still tests and runs correctly. I take zero responsibility for any destructive changes this may cause to your runtime.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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