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)
- Generated open api missing schema in path/query parameter HOT 1
- Request: When is the expected release date for v2? HOT 1
- Instalation issue
- Generics support cross package HOT 3
- Issue rendering Swagger UI, Blank page HOT 1
- add pattern or example to string value in a model HOT 1
- Ability to override name of enum variants generated from ordered constants
- Swag generate empty path HOT 1
- swag + kiota need the full path name for component HOT 3
- swagger-ui Parser error on line 13 end of the stream or a document separator is expected
- Custom attributes for tags
- Renaming of models HOT 1
- Parenthesis not registering in @Router
- Provide a way to specify an external module to include HOT 1
- Incorrect tab in swag fmt causes godoc display error
- Swagger UI support one-click expand model definition (include field comment) HOT 1
- Multiple success and failure sections for a single code HOT 1
- feat: Allow struct field type to differ from enum type
- Improve operation param parsing
- Swag fails to load type in external package. 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.