Files
leanote/app/cmd/main.go

20 lines
339 B
Go
Raw Normal View History

2015-09-18 11:30:38 +08:00
package main
import (
"fmt"
2015-11-13 17:58:41 +08:00
"github.com/revel/cmd/harness"
"github.com/revel/revel"
2015-09-18 11:30:38 +08:00
)
func main() {
// go run main.go
// 生成routes.go, main.go
revel.Init("", "github.com/leanote/leanote", "")
_, err := harness.Build() // ok, err
if err != nil {
panic(err)
}
fmt.Println("Ok")
2015-11-13 17:58:41 +08:00
// panicOnError(reverr, "Failed to build")
}