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