hypnoglow / gometaimports

A simple tool implementing [meta tags](https://golang.org/cmd/go/#hdr-Remote_import_paths) for Golang packages remote imports.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gometaimports

A simple tool implementing meta tags for Golang packages remote imports.

Usage

Prepare configuration file:

cp config.yaml.dist config.yaml

# edit config.yaml for your needs

Ensure modules are present in vendor directory:

go mod download
go mod vendor

Local

To run locally, build and run the application:

go build
./gometaimports -config ./config.yaml

Docker

Build docker image:

docker image build -t hypnoglow/gometaimports:dirty .

Run docker container:

docker container run -v $(pwd)/config.yaml:/etc/gometaimports.yaml -p 8080:8080 \
  hypnoglow/gometaimports:dirty gometaimports -config /etc/gometaimports.yaml

Licence

MIT.

About

A simple tool implementing [meta tags](https://golang.org/cmd/go/#hdr-Remote_import_paths) for Golang packages remote imports.

License:MIT License


Languages

Language:Go 96.0%Language:Dockerfile 4.0%