Giter VIP home page Giter VIP logo

Comments (5)

pnutmath avatar pnutmath commented on May 13, 2024 5

Path variable must be set:
After running go get -v -u github.com/swaggo/swag/cmd/swag
Please check /usr/local/go/bin or $HOME/go/bin where those swag executable is present.

Make sure you have that PATH in /etc/profile or $HOME/.profile

e.g. export PATH=$PATH:$HOME/go/bin

from swag.

hariraogotit avatar hariraogotit commented on May 13, 2024 1

Hi @pnutmath After running go get -v -u github.com/swaggo/swag/cmd/swag, I see swag in $HOME/go/bin. I tried swag init but I got "-bash: swag: command not found"
I also cd to $HOME/go/bin and tried swag init but got samething - "-bash: swag: command not found". I am very new to Golang. Can you please help?

from swag.

pei0804 avatar pei0804 commented on May 13, 2024

Is It done?

from swag.

hoangtuan151 avatar hoangtuan151 commented on May 13, 2024

Thanks @pei0804
Update: I fixed it! You must to set GOPATH env in case you have custom GOROOT env.

from swag.

xfirdavs avatar xfirdavs commented on May 13, 2024

Path variable must be set: After running go get -v -u github.com/swaggo/swag/cmd/swag Please check /usr/local/go/bin or $HOME/go/bin where those swag executable is present.

Make sure you have that PATH in /etc/profile or $HOME/.profile

e.g. export PATH=$PATH:$HOME/go/bin

thanks bro

from swag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.