Golang packaging: Difference between revisions

From wikinotes
No edit summary
No edit summary
Line 1: Line 1:
= Locations =
<blockquote>
{| class="wikitable"
|-
| <code>~/go/bin</code> || default <code>$GOBIN</code> path, where go executables are installed
|-
|}
</blockquote><!-- Locations -->
= Install Executable =
<blockquote>
Starting in golang-1.18, <code>go install</code> is used to install executables.
<syntaxhighlight lang="go">
go install github.com/appliedgocode/goman@latest  # install latest goman executable
</syntaxhighlight>
</blockquote><!-- Install Executable -->
= Module Requirements =
= Module Requirements =
<blockquote>
<blockquote>
See [[go.mod file]] .
See [[go.mod file]] .
</blockquote><!-- Module Requirements -->
</blockquote><!-- Module Requirements -->

Revision as of 02:32, 19 June 2022

Locations

~/go/bin default $GOBIN path, where go executables are installed

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

Module Requirements

See go.mod file .