for the REST api do:
export API_TYPE=rest
go run cmd/main.go
| protoc - encode stats.GetStatsRequest ./rpc/stats/stats.proto \
| curl -s - request POST \
- header "Content-Type: application/protobuf" \
- data-binary @- \
http://localhost:8000/twirp/stats.StatsService/GetStats \
| protoc - decode stats.GetStatsResponse ./rpc/stats/stats.proto
go run example/example.go
go test -bench=. -benchtime=5000x