Golang packaging: Difference between revisions
From wikinotes
No edit summary |
|||
Line 1: | Line 1: | ||
= Locations = | = Locations = | ||
Line 16: | Line 4: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| go | | <code>~/go/bin</code> || default <code>$GOBIN</code> path, where go executables are installed | ||
| | |||
| go | |||
|- | |- | ||
|} | |} | ||
</blockquote><!-- Locations --> | </blockquote><!-- Locations --> | ||
= OS Package Management = | = OS Package Management = | ||
Line 48: | Line 26: | ||
rm ${GOBIN:=~/go/bin}/tool-to-delete | rm ${GOBIN:=~/go/bin}/tool-to-delete | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- Package Management --> | </blockquote><!-- OS Package Management --> | ||
= Project Requirements = | |||
<blockquote> | |||
See [[golang modules]]. | |||
</blockquote><!-- Project Requirements --> |
Revision as of 14:03, 19 June 2022
Locations
~/go/bin
default $GOBIN
path, where go executables are installed
OS Package Management
Installing Packages
# golang < 1.18 go get -u example.com/x/foo # golang >= 1.18 go install example.com/x/foo@latestUninstalling Packages
# there doesn't seem to be a managed way of doing this rm ${GOBIN:=~/go/bin}/tool-to-delete
Project Requirements
See golang modules.