Documentation
¶
Overview ¶
cmd/gowhich shows the import path of Go executables
cmd/gowhich takes one argument, which is either program name or abosolute or relative path to an executable; when a program name is provided, it's looked up up in the $PATH.
cmd/gowhich looks for a main.main symbol in the given executable and tries to guess the import name from its source files path.
cmd/gowhich does not work on Go executables from $GOTOOLDIR.
Example usage
~ $ gowhich godoc code.google.com/p/go.tools/cmd/godoc
Click to show internal directories.
Click to hide internal directories.