This is a simple example of using the go-swagger-auth-form package.
Required to use the package: github.com/schmentle/go-swagger-auth-form
- Download the go module dependencies
go mod download
- Run the app
go run main.go
- Open the browser and navigate to http://localhost:3000/swagger/index.html
Example screenshot of the form generated: