Remote packages
One of the tools that is shipped with Go allows programmers to retrieve packages directly from remote source code repositories. Go, by default, readily supports integration with version control systems including the following:
Git (
git
, http://git-scm.com/)Mercurial (
hg
, https://www.mercurial-scm.org/)Subversion (
svn
, http://subversion.apache.org/)Bazaar (
bzr
, http://bazaar.canonical.com/)
Note
In order for Go to pull package source code from a remote repository, you must have a client for that version control system installed as a command on your operating system's execution path. Under the cover, Go launches the client to interact with the source code repository server.
The get
command-line tool allows programmers to retrieve remote packages using a fully qualified project path as the import path for the package. Once the package is downloaded, it can be imported for use in local source files. For instance, if you wanted to include one of the packages from the Ohm's Law example...