golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.22k stars 17.7k forks source link

proposal: x/tools/cmd/eg: build tags support #68069

Open janisz opened 5 months ago

janisz commented 5 months ago

Proposal Details

Currently eg does not support custom build tags. It will be great if it could refactor files including those guarded by build tags.

ianlancetaylor commented 5 months ago

CC @alandonovan @golang/tools-team

adonovan commented 1 day ago

This should be a trivial change. I don't think it warrants a proposal; we can copy the implementation of the -tags flags in other x/tools.