Implementing the RESTful Server

Let’s learn how to implement the RESTful server.

Now that we are sure that the restdb package works as expected, we are ready to explain the implementation of the RESTful server. The server code is split into two files, both belonging to the main package: main.go and handlers.go. The main reason for doing so is to avoid having huge code files to work with and separating the functionality of the server logically.

Get hands-on with 1200+ tech skills courses.