Skip to content

Instantly share code, notes, and snippets.

View colossus21's full-sized avatar
🌍
Digital nomad

Rafiul colossus21

🌍
Digital nomad
View GitHub Profile
// routes1.go
func Routes1(mux *http.ServeMux) {
mux.Handle("/route1/a", handler1A)
mux.Handle("/route1/b", handler1B)
mux.Handle("/route1/c", handler1C)
}
// routes2.go
func Routes2(mux *http.ServeMux) {
mux.Handle("/route2/x", handler2X)