Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CanOpenTerminal indicates if the current platform supports opening // Terminal/command-line applications to a specific directory. CanOpenTerminal bool )
Functions ¶
func Gopath ¶
func Gopath() []string
Gopath returns the system GOPATH(s), defaulting to $HOME/go if the environment variable is not set.
func OpenBrowser ¶
func OpenBrowser(url string)
OpenBrowser opens the default browser to the url provided.
func OpenFileExplorer ¶
func OpenFileExplorer(pkg string)
OpenFileExplorer opens the system file explorer application to the specified package.
func OpenTerminal ¶
func OpenTerminal(pkg string)
OpenTerminal opens the system terminal (command line) application to the specified package.
func RawGopath ¶ added in v0.3.1
func RawGopath() string
RawGopath returns the system GOPATH, defaulting to $HOME/go if the environment variable is not set, as a string regardless of how many GOPATHs are actually set.
Types ¶
Click to show internal directories.
Click to hide internal directories.