Difference between revisions of "Go list"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
* <code>[[go++ list</code>
+
https://manpages.debian.org/testing/golang-go/go-list.1.en.html
 +
 
 +
* <code>[[go]] list</code>
 
* <code>go list -f '{{.Target}}'</code>
 
* <code>go list -f '{{.Target}}'</code>
  
 
* <code>go list -u -m all</code>
 
* <code>go list -u -m all</code>
  
* <pre>[[export]] PATH=$PATH:$(dirname $(go list -f '{{.Target}}' .))</pre>
+
* <pre>export PATH=$PATH:$(dirname $(go list -f '{{.Target}}' .))</pre>
 +
 
 +
 
 +
[[go list ./...]]
 +
 
 +
 
 +
go list
 +
no Go files in /your/path/
 +
 
 +
 
 +
go list
 +
go: [[go.mod]] file not found in current directory or any parent directory; see '[[go help modules]]'
  
 +
== Related ==
 +
* <code>[[go get]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 14:42, 10 August 2022

https://manpages.debian.org/testing/golang-go/go-list.1.en.html

  • go list -u -m all
  • export PATH=$PATH:$(dirname $(go list -f '{{.Target}}' .))


go list ./...


go list
no Go files in /your/path/


go list
go: go.mod file not found in current directory or any parent directory; see 'go help modules'

Related[edit]

See also[edit]

Advertising: