Comments (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.
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.
Is It done?
from swag.
Thanks @pei0804
Update: I fixed it! You must to set GOPATH env in case you have custom GOROOT env.
from swag.
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)
- How to set displayRequestDuration ?
- Bad operation when there is a newline character between annotations
- Add Redocly UI Theme
- Add a way to specify a parameter for multiple routes at once
- example/celler unknown field LeftDelim HOT 2
- Dynamically set swagger version with semantic-release HOT 1
- Bug: --parseDependency generates documentation for external packages HOT 2
- Docs not generated for pkg folder
- Method names for typescript are not generated according to the annotations when two routes have a similar prefix HOT 1
- Support swagger type format for global override
- [V2] feat: supports bearer token security tag
- [v2] supports reusable enums and nullable enums
- Mail.Ru easyjson library security concerns
- fasthttp support HOT 3
- How can i set generalInfo without cli argument? HOT 2
- Curl error generated by sending multiple files
- Wrong definition parse HOT 1
- Bypass errors or completely skip package analysis/parsing
- Web Socket Support
- Got type definition cannot found after type definition HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swag.