The folders contains number of ready-to-run examples. Use the following command to execute example.
cd name-of-example
go run name-of-example.go
Each of the following example becomes available at http://localhost:8080
, use curl
to evaluate behavior.
Example of
- Using GET, POST, PUT, PATCH and DELETE - methods.go
- Using path patterns and variable - paths.go
- Using query string parameters - params.go
- Using headers values - headers.go
- Receiving and Sending payload - payloads.go
Misc Examples