Golang packaging: Difference between revisions

From wikinotes
No edit summary
Line 18: Line 18:
</syntaxhighlight>
</syntaxhighlight>
</blockquote><!-- Install Executable -->
</blockquote><!-- Install Executable -->
== Public Packages ==
<blockquote>
</blockquote><!-- Public Packages -->
== Private Packages ==
<blockquote>
Go executables are installed/built from src.<br>
You'll need to add your package to <code>$GOPRIVATE</code> envvar to stop it from being indexed.
</blockquote><!-- Private Packages -->
</blockquote><!-- Os Packages -->
</blockquote><!-- Os Packages -->



Revision as of 02:58, 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

Public Packages

Private Packages

Go executables are installed/built from src.
You'll need to add your package to $GOPRIVATE envvar to stop it from being indexed.


Project Requirements

Module Requirements

See go.mod file .