Skip to content

Commit 28de14c

Browse files
authored
Flags to parse internal and dependency package (#1894)
1 parent a74d34c commit 28de14c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,17 @@ swag init -g http/api.go -td "[[,]]"
956956
```
957957
The new delimiter is a string with the format "`<left delimiter>`,`<right delimiter>`".
958958
959+
### Parse Internal and Dependency Packages
960+
961+
If the struct is defined in a dependency package, use `--parseDependency`.
962+
963+
If the struct is defined in your main project, use `--parseInternal`.
964+
965+
if you want to include both internal and from dependencies use both flags
966+
```
967+
swag init --parseDependency --parseInternal
968+
```
969+
959970
## About the Project
960971
This project was inspired by [yvasiyarov/swagger](https://github.com/yvasiyarov/swagger) but we simplified the usage and added support a variety of [web frameworks](#supported-web-frameworks). Gopher image source is [tenntenn/gopher-stickers](https://github.com/tenntenn/gopher-stickers). It has licenses [creative commons licensing](http://creativecommons.org/licenses/by/3.0/deed.en).
961972
## Contributors

0 commit comments

Comments
 (0)