Golang packaging: Difference between revisions
From wikinotes
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
</blockquote><!-- Locations --> | </blockquote><!-- Locations --> | ||
= Install Executable = | = Os Packages = | ||
<blockquote> | |||
== Install Executable == | |||
<blockquote> | <blockquote> | ||
Starting in golang-1.18, <code>go install</code> is used to install executables. | Starting in golang-1.18, <code>go install</code> is used to install executables. | ||
Line 16: | Line 18: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- Install Executable --> | </blockquote><!-- Install Executable --> | ||
</blockquote><!-- Os Packages --> | |||
= Module Requirements = | = Project Requirements = | ||
<blockquote> | |||
== Module Requirements == | |||
<blockquote> | <blockquote> | ||
See [[go.mod file]] . | See [[go.mod file]] . | ||
</blockquote><!-- Module Requirements --> | </blockquote><!-- Module Requirements --> | ||
</blockquote><!-- Project Requirements --> |
Revision as of 02:56, 19 June 2022
Locations
~/go/bin
default $GOBIN
path, where go executables are installed
Os Packages
Install Executable
Starting in golang-1.18,
go install
is used to install executables.go install github.com/appliedgocode/goman@latest # install latest goman executable
Project Requirements
Module Requirements
See go.mod file .