PageRenderTime 21ms CodeModel.GetById 17ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/app/main.go

http://github.com/sut-go/gon
Go | 12 lines | 10 code | 2 blank | 0 comment | 0 complexity | e00578b35d9568a75d7972ce3f035465 MD5 | raw file
 1package main
 2
 3import "web"
 4import "framework/starter"
 5
 6func main() {
 7    starter.Start()
 8    web.Config.StaticDir = "web-app/"
 9    web.Post("/(.*)", starter.Get)
10    web.Get ("/(.*)", starter.Get)
11    web.Run("0.0.0.0:8080")
12}