Small example Go web service with net/http that uses Oicana for PDF templating.
- Install the native Oicana library and link it:
export CGO_LDFLAGS="$(go run go.oicana.com/oicana/cmd/oicana-install)" - Start the service:
go run . - Visit http://127.0.0.1:3006/swagger/ for the Swagger documentation
The Swagger documentation is generated from the comments on the handlers with swag. Run go tool swag init --outputTypes go after changing them.
The code of this example project is licensed under the MIT license.
But please be aware, that the Oicana dependency is licensed under PolyForm Noncommercial License 1.0.0 and, after 30 days, requires a commercial license for use cases that are not covered by the PolyForm license. Visit the Oicana website for pricing options.