Difference between revisions of "Go install"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
  
 
  [[go install golang.org/x/perf/cmd/benchstat@latest]]
 
  [[go install golang.org/x/perf/cmd/benchstat@latest]]
 +
 +
[[go install github.com/sj14/kubedump@latest]]
  
 
   [[go install -v]]
 
   [[go install -v]]
Line 16: Line 18:
  
 
== Paths ==
 
== Paths ==
Executables are installed in the directory named by the GOBIN environment
+
[[~/go/pkg/mod/]]
variable, which defaults to $GOPATH/bin or $HOME/go/bin if the GOPATH
+
[[~/go/bin/]]
environment variable is not set. Executables in $GOROOT
 
are installed in $GOROOT/bin or $GOTOOLDIR instead of $GOBIN.
 
  
 
== Related ==
 
== Related ==

Latest revision as of 12:23, 12 December 2023

Advertising: