Golang packaging: Difference between revisions

From wikinotes
No edit summary
Line 1: Line 1:
= Documentation =
<blockquote>
{| class="wikitable"
|-
| private modules || https://go.dev/ref/mod#private-modules
|-
| module proxies || https://go.dev/ref/mod#module-proxy
|-
| module cache || https://go.dev/ref/mod#module-cache
|-
|}
</blockquote><!-- Documentation -->
= Locations =
= Locations =
<blockquote>
<blockquote>
Line 39: Line 52:
See [[go.mod file]] .
See [[go.mod file]] .
</blockquote><!-- Module Requirements -->
</blockquote><!-- Module Requirements -->
== Vendoring ==
<blockquote>
</blockquote><!-- Vendoring -->
</blockquote><!-- Project Requirements -->
</blockquote><!-- Project Requirements -->

Revision as of 04:09, 19 June 2022

Documentation

private modules https://go.dev/ref/mod#private-modules
module proxies https://go.dev/ref/mod#module-proxy
module cache https://go.dev/ref/mod#module-cache

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 .

Vendoring