Me and a few friends are writing a server using golang (revel) and had a database implemented just a few weeks ago. Then suddenly everything just stopped working and the go compiler can't find my import files. That includes EmptyPlugin as well as RegisterPlugin.
We are all pretty new so this is probably a pretty simple fix. I have checked my github.com/robfig/revel folder, and there is no file called EmptyPlugin. But that is probably a misunderstanding from my side :P.
By commenting the lines revel.EmptyPlugin and revel.RegisterPlugin(DbPlugin{}) everything works as it should.
package controllers
import (
"database/sql"
"fmt"
_ "github.com/bmizerany/pq"
"github.com/robfig/revel"
"log"
"time"
//"strconv"
)
type DbPlugin struct {
revel.EmptyPlugin
}
func init() {
revel.RegisterPlugin(DbPlugin{})
}
var db *sql.DB
var err error