/app/main.go

http://github.com/sut-go/gon · Go · 12 lines · 10 code · 2 blank · 0 comment · 0 complexity · e00578b35d9568a75d7972ce3f035465 MD5 · raw file

  1. package main
  2. import "web"
  3. import "framework/starter"
  4. func main() {
  5. starter.Start()
  6. web.Config.StaticDir = "web-app/"
  7. web.Post("/(.*)", starter.Get)
  8. web.Get ("/(.*)", starter.Get)
  9. web.Run("0.0.0.0:8080")
  10. }