Hello,
I posted a topic about my route processing not working, I thought my code was being hijacked in my program. I don’t believe that is the case now.
My route processing is acting strangely code below:
func (h userLogOut) registerRoutes() {
http.HandleFunc("/logout", h.handleUserLogOut)
http.HandleFunc("/logout/", h.handleUserLogOut)
}
http://192.168.198.148:8000/logout - displays the proper logout page
http://192.168.198.148:8000/logout/ - redirects to my index page
http://192.168.198.148:8000/logout/try - falls back to my logout page
I believe there is something fundamental I’m not understanding on how routes are processed in Go. Does anyone have a link to solid documentation I can read? If you understand what I’m missing a link to docs and an explanation would be fantastic.
Thank you kindly,
Steven