```go
func route(w http.ResponseWriter, r *http.Request) {
//设置路由
http.HandleFunc("/", home.Index) //首页
err := http.ListenAndServe(":80", nil) //设置监听的端口
if err != nil {
fmt.Println(msg.Msg_maintenance)
}
}
func Init() {
route
}
```
报错 route evaluated but not used 怎么解决?
更多评论