Skip to content

Go Package Registry


Prerequisites

Install Go from:
- Official site
- Or via package manager:

sudo apt install golang-go

GitFlic Registry Configuration

Replace <gitflic_domain> with:
- SaaS version: go.gitflic.ru

Access Levels

Level URL Pattern
Project go.gitflic.ru/{ownerAlias}/{projectAlias}
Company go.gitflic.ru/{companyAlias}/{projectAlias}
Team go.gitflic.ru/{teamAlias}/{projectAlias}
Parameter Description
ownerAlias Project owner nickname
projectAlias Project nickname
companyAlias Company nickname
teamAlias Team nickname

Package Publishing

  1. Create a repository on GitFlic
  2. Upload your Go module:
  3. Via terminal
  4. Or web interface

Go Registry

Package Installation

  1. Disable proxy:
    export GOPROXY=direct
    
  2. Ensure repository is public or configure Git to use SSH
  3. Install module:
    go mod init mynewproject
    go get <repository_url>
    
  4. Import in code:
    package main
    
    import (
        "fmt"
        "<repository_url>"
    )
    
    func main() {
        fmt.Println("Hello, World!")
    }
    

Automatic translation!

This page has been automatically translated. The text may contain inaccuracies