Getting the code
You can get the code samples for this chapter at the GitHub repository link https://github.com/narenaryan/gorestful/tree/master/chapter8. This chapter has examples that are a combination of single programs, as well as projects. So, copy the respective directory to your GOPATH
to run the code samples properly. For the last example of unit testing the URL shortening service, the tests are available at https://github.com/narenaryan/gorestful/tree/master/chapter7.