You can get the code samples for this chapter from https://github.com/narenaryan/gorestful/tree/master/chapter5. This chapter's examples are a combination of single programs and projects. So, copy the respective directory to your GOPATH to run the code samples properly.