summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2019-01-21 16:04:22 +0000
committerAchilleas Pipinellis <axil@gitlab.com>2019-01-21 16:04:22 +0000
commitcf0a4ca523d1da9f7ee63ec615ef6d65fe361a6c (patch)
tree98ba860aa583c747739d46c7a5a596f29bafdc1a
parent411579d76c371f9c4c3d940a29ac729cf9b64440 (diff)
downloadgitlab-ce-cf0a4ca523d1da9f7ee63ec615ef6d65fe361a6c.tar.gz
Add tip about Go packages
-rw-r--r--doc/user/project/index.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/user/project/index.md b/doc/user/project/index.md
index ce8bd2de61f..b8989f5ae14 100644
--- a/doc/user/project/index.md
+++ b/doc/user/project/index.md
@@ -149,3 +149,17 @@ When [renaming a user](../profile/index.md#changing-your-username),
work after a rename, making any transition a lot smoother.
- The redirects will be available as long as the original path is not claimed by
another group, user or project.
+
+## Use your project as a Go package
+
+Any project can be used as a Go package including private projects in subgroups. To use packages
+hosted in private projects with the `go get` command, use a [`.netrc` file](https://ec.haxx.se/usingcurl-netrc.html)
+and a personal access token in the password field.
+
+For example:
+
+```text
+machine example.gitlab.com
+login <gitlab_user_name>
+password <personal_access_token>
+```