You can get the code samples for this chapter at https://github.com/narenaryan/gorestful/tree/master/chapter12. Since the example programs are not packages, the reader needs to create the project files by following the GOPATH way of writing projects.