Go Operations TO DELETE: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 19: Line 19:


=Dependency Management=
=Dependency Management=
<font color=red>


* godep by Keith Rarick
* godep by Keith Rarick
* vendor by Daniel Theophanes
* vendor by Daniel Theophanes
* gopkg.in Gustavo Niemeyer
* gopkg.in Gustavo Niemeyer
==Vendoring==
Vendoring is a technique that involves copying the dependencies inside the project repository and then rewrite the import paths to reference those dependencies by providing the location inside the project itself.
</font>


=Vendoring=
=Vendoring=

Revision as of 03:01, 5 April 2016

Internal

Subjects

Remote Imports

go get

Sharing Code

From "Go in Action" - to clarify: The package should live at the root of the repository. When you're using go get, you specify the full path to the package that should be imported. This means that when you create a repository that you intend to share, the package name should be the repository name, and the package's source should be in the root of the repository's directory structure. A common mistake that new Go developers make is to create a code or src directory in their public repository. Doing so will make the package's public import longer. Instead, just put the package source files at the root of the public repository. Page 72.

Dependency Management

  • godep by Keith Rarick
  • vendor by Daniel Theophanes
  • gopkg.in Gustavo Niemeyer

Vendoring

Vendoring is a technique that involves copying the dependencies inside the project repository and then rewrite the import paths to reference those dependencies by providing the location inside the project itself.

Vendoring

Portability

Debugging