Basic $ go install github.com/swaggo/swag/cmd/swag@latest $ swag init $ go run main.go Navigate to http://localhost:8080/swagger.