1
0
mirror of https://github.com/golang/go synced 2024-11-18 09:04:49 -07:00
go/refactor
Alan Donovan bdcea2c1b3 go/buildutil: use chan (not func) in the ForEachPackage API
The callbacks are intentionally concurrent, making this function very
easy to misuse (most clients so far have got it wrong, even my own).
Using a channel in the API makes the concurrency obvious, the
correct usage easy, and the client control flow simpler.

Change-Id: Ied38c3ed5c98b40eb1b322a984ed9dc092ac0918
Reviewed-on: https://go-review.googlesource.com/3250
Reviewed-by: Sameer Ajmani <sameer@golang.org>
2015-03-05 20:14:20 +00:00
..
eg refactor/eg: use format.Node not printer.Fprint for canonical output 2015-03-02 19:38:58 +00:00
importgraph go/ssa: change import path of synthetic test package to "test$main" 2015-01-21 22:21:01 +00:00
lexical go/loader: rename SourceImports flag to ImportFromBinary and invert sense 2015-02-23 23:01:10 +00:00
rename go/buildutil: use chan (not func) in the ForEachPackage API 2015-03-05 20:14:20 +00:00
satisfy go/types: expose IsInterface predicate, eliminating 6 copies 2015-01-21 18:49:27 +00:00
README go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00

golang.org/x/tools/refactor: libraries for refactoring tools.