Difference between revisions of "Go list"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
 
* <pre>export PATH=$PATH:$(dirname $(go list -f '{{.Target}}' .))</pre>
 
* <pre>export PATH=$PATH:$(dirname $(go list -f '{{.Target}}' .))</pre>
  
 +
 +
go list
 +
go: go.mod file not found in current directory or any parent directory; see 'go help modules'
  
 
== Related ==
 
== Related ==

Revision as of 14:19, 17 January 2022

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


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

Related

See also

Advertising: