fix install instructions for go <1.11

This commit is contained in:
Leo Antunes 2018-08-26 14:53:25 +02:00
parent 2f9507b054
commit eb343c9158
2 changed files with 6 additions and 2 deletions

View file

@ -11,9 +11,12 @@ Inspired by [`vagrant-hostmanager`](https://github.com/devopsgroup-io/vagrant-ho
## Installation
To install from source:
To install from source, [dep](github.com/golang/dep) must be used:
```
go install github.com/costela/docker-etchosts
go get -d github.com/costela/docker-etchosts
cd $GOPATH/src/github.com/costela/docker-etchosts
dep ensure -vendor-only
go install
```
And run it as `docker-etchosts`

View file

@ -30,6 +30,7 @@ import (
log "github.com/sirupsen/logrus"
)
// ConfigSpec holds the runtime configuration
type ConfigSpec struct {
LogLevel string `default:"warn" split_words:"true"`
EtcHostsPath string `default:"/etc/hosts" split_words:"true"`