Gin Web FrameworkGo 的 HTTP Web 框架
Gin 是一个用 Go 语言开发的 Web 框架,提供类 Martini 的 API,但是性能更好。因为有了 httprouter 性能提升了 40 倍之多。
$ cat test.go
package main import ( "net/http" "github.com/gin-gonic/gin" ) func main() { router := gin.Default() router.GET("/", func(c *gin.Context) { c.String(http.StatusOK, "hello world") }) router.GET("/ping", func(c *gin.Context) { c.String(http.StatusOK, "pong") }) router.POST("/submit", func(c *gin.Context) { c.String(http.StatusUnauthorized, "not authorized") }) router.PUT("/error", func(c *gin.Context) { c.String(http.StatusInternalServerError, "an error happened :(") }) router.Run(":8080") }
评论
Gem FrameworkGo 语言编写的 Web 框架
Gem补充:不兼容WindowsGem 是一个用 Go(golang)语言编写的简单而又快速的 We
Gem FrameworkGo 语言编写的 Web 框架
0
Gem FrameworkGo 语言编写的 Web 框架
Gem补充:不兼容WindowsGem是一个用Go(golang)语言编写的简单而又快速的Web框架,用于构建RESTAPI或web应用,基于fasthttp。安装go get github.com/
Gem FrameworkGo 语言编写的 Web 框架
0
FastPypython 的 http服务器+web框架
高性能pythonhttp服务器+web框架源代码只有600多行性能比较如下tornado4kqps多进程1wqps nginx+tornado9kqpsnginx+uwsgi8kqpsdjangow
FastPypython 的 http服务器+web框架
0
TurismoJava的Web框架
turismo是一个类似Sinatra的Java的微型Web框架。示例代码:publicclassAppRoutesextendsRoutesList{ protectedvoidmap(){
TurismoJava的Web框架
0
YesodHaskell的web框架
Yesod是Haskell的Web框架用于开发类型安全、RESTful、高性能的Web应用。安装方法:cabalinstallyesod-platform
YesodHaskell的web框架
0
GolangerGo 的 Web 框架
Golanger是一个轻量级的Web应用框架,使用Go语言编写。Golanger框架主要实现了MVC模式(三层架构模式)(Model-View-Controller),它是软件工程中的一种软件架构模式
GolangerGo 的 Web 框架
0
VoltRuby 的 Web 框架
Volt是一个Ruby的Web框架,使得你的Ruby可在服务器和客户端上运行。当用户与页面交互时,DOM自动更新。页面状态可以存储在URL中。如果用户直接点击URL,则HTML将首先在服务器上呈现,以
VoltRuby 的 Web 框架
0