Cannot install go-swagger, documentation is not getting me any further, help much appreciated.
brew install go-swagger
go get -u github.com/go-swagger/go-swagger/cmd/swagger
If i go to go-swagger/go-swagger/cmd/swagger/ i can run go run swagger.go but i expect to be able to run swagger the normal way?
swagger version: 0.16.0
go version: 1.9.2
OS: macOS High Sierra 10.13.6
option 1, I suspect you're on go 1.11 that will be fixed on the next release
option 2: you're missing $GOPATH/bin on your path which is why it can't find the executable
something along these lines should fix that:
echo 'export PATH="${GOPATH-"~/go"}/bin:$PATH"' >> ~/.bashrc && exec $SHELL
Most helpful comment
option 2: you're missing $GOPATH/bin on your path which is why it can't find the executable
something along these lines should fix that: