2016-04-27 51 views

回答

3

下面的代碼添加到您的處理程序的開頭:

if r.URL.Path != "/" { 
    http.NotFound(w, r) 
    return 
} 
相關問題