Go Series: Learning How to Build a Web Service Using Go from Scratch Pt. 14 — Routes

Jonathan Chao
2 min readJul 16, 2023

We’ve got our controller. Now it’s just a matter of fact that we need to connect it to some route.

Remember we have a UserController struct and NewUserController method to create this struct.

Since we have defined the routes already as such

func NewUserController(r…

--

--

Jonathan Chao

I am a software developer who has been in this industry for close to a decade. I share my experience to people who are or want to get into the industry