errors: add Caller, a helper for recording stack frame detail

Caller returns a Frame that can be stored in an error
and then used when formatting error detail, to print
information about a particular caller's frame.

Change-Id: I0dc9f9e05c86e47a140ecfe987bdcb29c145d9be
Reviewed-on: https://go-review.googlesource.com/c/144198
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
6 files changed
tree: a67cbedf7746c0c1fd94e12b370a633695e8f53a
  1. cmd/
  2. ebnf/
  3. ebnflint/
  4. errors/
  5. fsnotify/
  6. inotify/
  7. io/
  8. mmap/
  9. old/
  10. rand/
  11. shiny/
  12. shootout/
  13. utf8string/
  14. winfsnotify/
  15. .gitattributes
  16. .gitignore
  17. AUTHORS
  18. codereview.cfg
  19. CONTRIBUTING.md
  20. CONTRIBUTORS
  21. LICENSE
  22. PATENTS
  23. README.md
README.md

exp

This subrepository holds experimental and deprecated (in the old directory) packages.

The idea for this subrepository originated as the pkg/exp directory of the main repository, but its presence there made it unavailable to users of the binary downloads of the Go installation. The subrepository has therefore been created to make it possible to go get these packages.

Warning: Packages here are experimental and unreliable. Some may one day be promoted to the main repository or other subrepository, or they may be modified arbitrarily or even disappear altogether.

In short, code in this subrepository is not subject to the Go 1 compatibility promise. (No subrepo is, but the promise is even more likely to be violated by go.exp than the others.)

Caveat emptor.