示例#1
0
func main() {
	js.AddRoute("/", mainPage)
	js.RouterRun()
}
示例#2
0
func main() {
	js.AddRoute(paths.main, mainPage)
	js.AddRoute(paths.second, secondPage)
	js.RouterRun()
}