https://github.com/linka-cloud/go-repo
https://github.com/linka-cloud/go-repo
golang gomod gomodules
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/linka-cloud/go-repo
- Owner: linka-cloud
- License: apache-2.0
- Created: 2021-07-23T15:24:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-14T12:57:31.000Z (over 4 years ago)
- Last Synced: 2025-06-08T22:03:00.518Z (12 months ago)
- Topics: golang, gomod, gomodules
- Language: Go
- Homepage:
- Size: 550 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-repo
*go-repo* is a simple golang repository hosting web app, heavily inspired by [go.uber.org](https://go.uber.org).
It allows hosting go modules with custom import names.
Example :
```bash
$ go get go.linka.cloud/go-repo
```
instead of
```bash
$ go get github.com/linka-cloud/go-repo
```
## Installation
```bash
$ docker pull linkacloud/go-repo
```
## Deployment
An example Kubernetes deployment is available in [the deploy directory](deploy/deploy.yml).
## Usage
```bash
$ 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:
```yaml
modules:
- import: go.linka.cloud/go-repo
repository: github.com/linka-cloud/go-repo
readme: github.com/linka-cloud/go-repo/raw/master/README.md
```
The config file is reloaded on changes
Run the app:
```bash
$ go-repo config.yml
```
## Screenshots
The origin display the available packages index

The details page display the README.md from configuration
