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