20 lines
339 B
Go
20 lines
339 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/revel/cmd/harness"
|
|
"github.com/revel/revel"
|
|
)
|
|
|
|
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")
|
|
// panicOnError(reverr, "Failed to build")
|
|
}
|