Latest golang.
Sample code from another SO answer.
rootMux := http.NewServeMux() subMux := http.NewServeMux() subMux.HandleFunc("/a1", func(w