|
2 weeks ago | |
---|---|---|
deploy | 1 month ago | |
screenshots | 1 month ago | |
.gitignore | 1 month ago | |
Dockerfile | 1 month ago | |
LICENSE | 1 month ago | |
README.md | 1 month ago | |
config.example.yml | 1 month ago | |
go.mod | 2 weeks ago | |
go.sum | 2 weeks ago | |
handler.go | 2 weeks ago | |
index.go | 1 month ago | |
main.go | 1 month ago | |
module.go | 2 weeks ago | |
package.go | 1 month ago | |
templates.go | 1 month ago |
go-repo is a simple golang repository hosting web app, heavily inspired by go.uber.org.
It allows hosting go modules with custom import names.
Example :
$ go get go.adphi.net/go-repo
instead of
$ go get git.adphi.net/adphi/go-repo
$ docker pull adphi/go-repo
An example Kubernetes deployment is available in the deploy directory.
$ go-repo
Usage:
go-repo [config] [flags]
Examples:
go-repo config.yml
Flags:
-a, --address string The server address (default ":8888")
-h, --help help for go-repo
--logs-level string (default "info")
An example config file:
modules:
- import: go.adphi.net/go-repo
repository: git.adphi.net/adphi/go-repo
readme: git.adphi.net/adphi/go-repo/raw/master/README.md
The config file is reloaded on changes
Run the app:
$ go-repo config.yml