I’m brand new to using Go. I’ve been assigned the task to modify the Gogs UI for an internal project in my company: https://github.com/gogits/gogs
I’d like to add a new page, via a new template, and then redirect to it under certain circumstances. In my particular case, the basic template I’m starting with is: /user/dashboard/dashboard.tmpl
Let’s say I wanted to add this one: /user/dashboard/dashboard2.tmpl
What do I need to do, in terms of routers, so that I can redirect to this page?
Note: If it’s impossible to have two destination pages within the same folder, then this would be fine too: /user/dashboard2/dashboard.tmpl
Either way works! But I’ve examined the Gogs codebase and read up everything I could about Go routers but cannot figure out how to make this work.