swag init command not running

Created on 30 Aug 2018  路  9Comments  路  Source: swaggo/swag

Describe the bug
Swag init is not working.

To Reproduce
Steps to reproduce the behavior:

  1. Extract swaggo/swag
  2. run swag init in the root folder
    Expected behavior
    Command:swag not found

Screenshots
If applicable, add screenshots to help explain your problem.

Your swag version
e.g. v1.2.0

Desktop (please complete the following information):

  • Ubuntu
  • Mozilla

Additional context
Add any other context about the problem here.

Most helpful comment

for those having this problem, make sure your GO Path is on the PATH environment variable export PATH=$(go env GOPATH)/bin:$PATH

All 9 comments

Please download swag by using:

$ go get -u github.com/swaggo/swag/cmd/swag

please reopen it if you still have any questions.

@easonlin404 I am also facing the same issue. swag: command not found
$ go get -u github.com/swaggo/swag/cmd/swag
did not work

Me too!

me too

meToo

for those having this problem, make sure your GO Path is on the PATH environment variable export PATH=$(go env GOPATH)/bin:$PATH

for those having this problem, make sure your GO Path is on the PATH environment variable export PATH=$(go env GOPATH)/bin:$PATH

This worked for me

for those having this problem, make sure your GO Path is on the PATH environment variable export PATH=$(go env GOPATH)/bin:$PATH

I think this reply should be append to the readme.md

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nerzal picture Nerzal  路  6Comments

chyroc picture chyroc  路  3Comments

piwan picture piwan  路  6Comments

wuhuizuo picture wuhuizuo  路  4Comments

hoangtuan151 picture hoangtuan151  路  4Comments