8000 GitHub - hellokaton/gow: 🙄 gow!!! a micro go web framework.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hellokaton/gow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
< 9438 /div>
 
 
 
 
 
 

Repository files navigation

gow

🙄 gow!!! the micro web framework.

Hello Gow

g := gow.Me()
g.Get("/", func(ctx gow.Context) {
    ctx.Text("Hello World")
})
g.Listen(":10777")

Template

g := gow.Me()
g.Get("/", func(ctx gow.Context) {
    fmap := template.FuncMap{
        "Name": "gow",
    }
    ctx.Render("index", fmap)
})

JSON

g := gow.Me()
g.Get("/", func(ctx gow.Context) {
    fmap := template.FuncMap{
        "u1": "jack1",
        "u2": "jack2",
        "u3": "jack3",
    }
    ctx.Json(fmap)
})

后续计划

  • session管理
  • 参数优化
  • 多模板支持
  • 配置优化
  • 命令行支持

About

🙄 gow!!! a micro go web framework.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0