imported and not used: 。。。 as file ,报 undefined:

之前我的File包是file,我的htmlparts之前是moetemplate
我使用go build后

./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

而我的import是这样的

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文件夹
请问我的编译到底错在哪了?

查看回复