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