Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/razonyang/gopkgs

An HTTP service for customizing import path of your Go packages.
https://github.com/razonyang/gopkgs

custom-import custom-import-path go golang gopkgs

Last synced: 21 days ago
JSON representation

An HTTP service for customizing import path of your Go packages.

Awesome Lists containing this project

README

        

# Go Packages
[![Build Status](https://img.shields.io/travis/razonyang/gopkgs?style=flat-square)](https://travis-ci.org/razonyang/gopkgs)

A self-host HTTP service that allow customizing your Go package import paths.

## Features

- [x] Reports.
- [x] Badges.
- [ ] I18N.

## Preview

I launch up a free HTTP service(https://gopkgs.net). With this service, you only need a domain name to customize the import path of your packages.

The rest of sections introduces how to host on your own server.

## Requirements

- MySQL/MariaDB.
- Redis.

## Configuration

```shell
$ cp .env.example .env
```

Checkout the [.env.example] for details.

## Migration

```shell
$ migrate --database mysql://user:password@tcp(host:port)/dbname?query -path=/migrations up
```

Checkout [go-migrate](https://github.com/golang-migrate/migrate) for details.

## Start service

```shell
$ go run main.go serve
```