Implementing the RESTful Server
Let’s learn how to implement the RESTful server.
We'll cover the following...
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.
Access this course and 1400+ top-rated courses and projects.