Add tip about Go packages

This commit is contained in:
Evan Read 2019-01-21 16:04:22 +00:00 committed by Achilleas Pipinellis
parent 411579d76c
commit cf0a4ca523
1 changed files with 14 additions and 0 deletions

View File

@ -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>
```