Skip to content

Instantly share code, notes, and snippets.

@LuD1161
Created February 7, 2020 14:56
Show Gist options
  • Select an option

  • Save LuD1161/ef0cccbebb283a2f3caa44ad43cb6357 to your computer and use it in GitHub Desktop.

Select an option

Save LuD1161/ef0cccbebb283a2f3caa44ad43cb6357 to your computer and use it in GitHub Desktop.
Makefile for swagger
run:
go run main.go
swagger-gen:
swagger generate spec -o ./swagger.json --scan-models && ls -alh ./swagger.json
swagger-local:
swagger generate spec -o ./swagger.json --scan-models && swagger serve -F=swagger swagger.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment