我将文件重命名为文件,并将 moetemplate 重命名为 htmlparts 然后去构建
./router.go:8: imported and not used: "github.com/golangframework/File" as file
./router.go:11: imported and not used: "github.com/golangframework/htmlparts" as moetemplate
./router.go:21: undefined: File in File.ReadAllBytes
./router.go:61: undefined: htmlparts in htmlparts.LoadPartFile
./router.go:62: undefined: File in File.ReadAllText
./router.go:65: undefined: htmlparts in htmlparts.Render
我的进口是这个
package main
import (
"encoding/json"
"log"
"net/http"
"github.com/golangframework/File"
"github.com/golangframework/JSON"
"github.com/golangframework/Object"
"github.com/golangframework/htmlparts"
"github.com/golangframework/httpmongo"
"github.com/golangframework/moeregexp"
)
我还清理了 goroot pkg,更新了 src 为什么构建错误?
浮云间
紫衣仙女
相关分类