If your page has many paths, it's probably better to organise them into functions. In this case, we can use a router such as https://github.com/gorilla/mux but we need to follow the instructions in previous link to clone library locally so it's available to your installed Go version.
After it's all done, we can split the paths into functions and that's way more scalable than using multiple if's and else's:
The major difference here is that we need to create an instance of the router first (my router := mux.NewRouter()) and then we add the appropriate paths per function.
Hang on! Why we didn't create a function for any other non-existing paths (404)?