tools/cmd/guru
Dominik Honnef 446a18e709 go/buildutil, cmd/guru: extract overlay context into buildutil
This extracts the overlay context and archive parsing from guru into
buildutil.

At least one tool (gogetdoc) has a vendored copy of this code already,
and more tools implementing the same functionality will follow.

The new code in buildutil is an almost identical copy of the code in
guru (names aside), except for the following changes:

- Instead of reading into a bytes.Buffer, we read directly into a []byte
  of appropriate size

- sameFile first attempts a simple comparison of path.Clean'ed paths.

Change-Id: I97cd978ccc10722e3648e5e10625fa7f1407f202
Reviewed-on: https://go-review.googlesource.com/21805
Reviewed-by: Alan Donovan <adonovan@google.com>
2016-04-13 01:11:48 +00:00
..
serial cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
testdata/src cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
callees.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
callers.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
callstack.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
definition.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
describe.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
emacs-test.bash cmd/guru: in Emacs, change 'definition' to jump directly 2016-02-15 17:57:16 +00:00
freevars.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
go-guru.el cmd/guru: emacs: add function for expandiong region 2016-04-13 01:08:39 +00:00
guru.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
guru.vim cmd/guru: clean ups to command-line interface 2016-02-12 21:50:49 +00:00
guru_test.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
implements.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
main.go go/buildutil, cmd/guru: extract overlay context into buildutil 2016-04-13 01:11:48 +00:00
peers.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
pointsto.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
pos.go cmd/guru: fix nil deref when position is not in Go source 2016-03-07 15:53:42 +00:00
referrers.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
what.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
whicherrs.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00