当我使用http.HandleFunc("/", serveRest) //serveRest is the method to handle requesthttp.ListenAndServe("localhost:4000", nil)它将接受所有以 开头的请求"/"。我如何限制它只提供服务"localhost:4000"而不是每个地址"localhost:4000/*"?你们能给我推荐一个好的 Go 教程吗?
2 回答
- 2 回答
- 0 关注
- 162 浏览
添加回答
举报
0/150
提交
取消