December 2017
Intermediate to advanced
316 pages
6h 58m
English
We can run the program directly using the run command:
go run customMux.go
Now, let us fire two CURL commands and see the output:
curl -X GET http://localhost:8000/randomFloatcurl -X GET http://localhost:8000/randomInt
The responses will be:
0.604660287979619687
We saw how we can create a URL router with basic Go constructs. Now we are going to look at a few popular URL routing frameworks that are widely used by the Go community for their API servers.