gin-gonic/gin
View on GitHub ↗ ★ 89,472 Go
Gin is a high-performance HTTP web framework written in Go. It provides a Martini-like API but with significantly better performance—up to 40 times faster—thanks to httprouter. Gin is designed for building REST APIs, web applications, and microservices.
39 mentions on Hacker News by 37 people: 4 stories, 35 comments · first 2014-06-30 · latest 2026-10-15
20082026
-
…switched to using Encoder in some minor version and had to switch back too due to the same problem: https://github.com/gin-gonic/gin/issues/2209
comment by rkuska · 2026-10-15 · in Better HTTP/1 connection reuse in Go 1.27 -
…internal services at work, and the last time I touched the infra was in 2022 according to git [0] https://github.com/gin-gonic/gin [1] https://gist.github.com/donalmacc/0efbb0b377533232da3f776c60... . [2]…
comment by maccard · 2024-02-10 · in Almost every infrastructure decision I endorse or regret -
…levels. E.g. go-admin comes to mind [1] [1] https://github.com/GoAdminGroup/go-admin [2] https://github.com/gin-gonic/gin
comment by thrwwycbr · 2024-01-22 · in Ask HN: Good examples of Go back ends? -
…yourself using "raw" queries anyway. There are some well-established web frameworks for Go (e.g. https://github.com/gin-gonic/gin ), but they are controversial too, as most Go developers seem to prefer libraries (that your code calls)…
comment by rob74 · 2023-07-06 · in Goravel, Web framework inspired from Laravel in Golang -
…for a given writer that recovers from any panics and calls the provided handle func to handle it. ( https://github.com/gin-gonic/gin/blob/master/recovery.go )
comment by Gys · 2023-04-24 · in Keep the monolith, but split the workloads -
…in those languages for web development. The following frameworks were especially interesting Go: https://github.com/gin-gonic/gin Rust: https://rocket.rs/ Julia: https://genieframework.com/
comment by leke · 2022-06-23 · in Beginner's Series to Rust -
…in Go revived an issue about the ergonomics of typesafe Context in a Go HTTP framework called Gin: https://github.com/gin-gonic/gin/issues/1123 If anyone can contribute, please do.
comment by hu3 · 2022-03-30 · in Generics can make your Go code slower -
…default project structure. Each subfolder has README that describes the purpose of the folder 5. go get -u github.com/gin-gonic/gin to add gin (web lib) for your project. Same for any other package. The will be added to your go.mod and…
comment by konart · 2021-01-05 · in Learn Go in five minutes -
the name usage of "gin" is quite common, it seems: https://github.com/gin-gonic/gin
comment by kyawzazaw · 2020-04-24 · in Best Practices for Working with Configuration in Python Applications -
This looks almost identical to Gin https://github.com/gin-gonic/gin Gin has 1000s of production users right now. Please evaluate carefully before choosing one or the other.
comment by ssutch3 · 2020-02-23 · in Fiber – Express inspired web framework written in Go -
…a transitive dependency, but your dependencies can offer configuration like Gonic does. [0] [0] https://github.com/gin-gonic/gin#build-with-jsoniter
comment by CGamesPlay · 2019-12-05 · in Segmentio/encoding: optimized drop-in replacement for Go's encoding/JSON package -
…for someone like me just getting started with the framework, is the gin Golang http framework: ( https://github.com/gin-gonic/gin ) -- that readme is full of useful examples.
comment by gigatexal · 2019-11-08 · in Show HN: microvm – a minimalist machine type for QEMU inspired by Firecracker -
…for by folks who have long been pillars of the community. Martini was effectively replaced by Gin ( https://github.com/gin-gonic/gin ), which is still heavily used.
comment by badrequest · 2019-10-29 · in Go Is the New Ruby -
…so you know the primitives. Writing Web Applications[1] on golang.org covers the basics. [0] https://github.com/gin-gonic/gin [1] https://golang.org/doc/articles/wiki
comment by bndw · 2019-08-15 · in Ask HN: Is there a project based book or course on Go for writing web APIs? -
…(it's a string because the underlying protocol uses error strings.) - gin: https://godoc.org/github.com/gin-gonic/gin#Error The first three I picked because I used them, but the last one was fun. I just found one of the top Go libraries on…
comment by jchw · 2019-06-05 · in Proposal: A built-in Go error check function, try -
…feel yourself limited by it. The first thing people probably adopt is a more expressive router. [1] https://github.com/gin-gonic/gin [2] https://github.com/julienschmidt/httprouter [3] https://github.com/gorilla
comment by artursapek · 2018-07-14 · in Ask HN: What is the current state of web frameworks in Golang? -
…into building something without having to dive into doing a lot of http.Server research. [1] https://github.com/gin-gonic/gin
comment by anschwa · 2018-07-14 · in Ask HN: What is the current state of web frameworks in Golang? -
…really the `database/sql package` is probably all you need. As for drivers, here's a list [5] [0] https://github.com/gin-gonic/gin [1] http://www.gorillatoolkit.org/ [2] https://github.com/gobuffalo/buffalo [3]…
comment by programd · 2018-03-08 · in Ask HN: Considering using Golang for my main language for web development -
…yourself and using a nice web framework, like Echo ( https://github.com/labstack/echo ) or Gin ( https://github.com/gin-gonic/gin ). I prefer Echo due to a cleaner, mockable design, but they're equivalent. You can throw up that web server…
comment by oppositelock · 2018-01-07 · in Show HN: A simple Go web server with logging, tracing, health check -
https://github.com/gin-gonic/gin
comment by jstewartmobile · 2017-09-07 · in Ask HN: What Go framework for web API are you using in production? -
…people. There are much better alternatives such as https://github.com/julienschmidt/httprouter or https://github.com/gin-gonic/gin .
comment by ilozinski · 2017-02-10 · in Go Web Examples -
…) that others have mentioned that have all the batteries included. Others like Gin ( https://github.com/gin-gonic/gin ) that have a lot built in and offer an stable API and good performance. Gorilla ( http://www.gorillatoolkit.org/ )…
comment by tmaly · 2016-10-26 · in Ask HN: Which Go web framework should i use in 2016? -
…a discussion about Iris on the github issue tracker of Gin, another framework, dated March 13 2016: https://github.com/gin-gonic/gin/issues/560 Some benchmark were made too.
comment by znpy · 2016-06-21 · in Iris: Fast back-end web framework for Go -
thanks. I should have said https://github.com/gin-gonic/gin specifically vs. just generic golang. Good point!
comment by andrewfromx · 2016-05-07 · in Rails 5.0.0.rc1 -
…the pieces together to make something functional. You will probably need: - A router like [Gin]( https://github.com/gin-gonic/gin ) - A [XSRF token generator and validator]( https://github.com/golang/net/blob/master/xsrftoken/xsrf.go ) -…
comment by andreynering · 2016-05-01 · in Go best practices, six years in -
…In that discussion the author of gin mentions gin has a zero allocation router as well https://github.com/gin-gonic/gin/issues/249 On mobile right now, will look at the gin/echo benchmarks later (especially if the gin benchmarks compare…
comment by melle · 2016-04-05 · in Echo – Golang micro web framework -
Is there much difference between Lion and the router in Gin ( https://github.com/gin-gonic/gin )?
comment by adwmayer · 2016-03-20 · in Show HN: Lion, a fast HTTP router for building modern scalable modular REST APIs -
I personally use gin https://github.com/gin-gonic/gin and have never looked back
comment by otraore · 2016-03-19 · in Some Rookie Mistakes in Go -
…web frameworks like Gin[1], Martini[2], and Beego[3]. [0] https://golang.org/doc/articles/wiki/ [1] https://github.com/gin-gonic/gin [2] https://github.com/go-martini/martini [3] https://github.com/astaxie/beego
comment by ihsw · 2015-07-07 · in Handling 1M Requests per Minute with Go -
mmm, not sure if doing this counts as using 77 lines of code: import ( "github.com/gin-gonic/gin" "github.com/gorilla/websocket" "github.com/olahol/melody" "net/http" "sync" ) But still impressive.
comment by sschueller · 2015-05-27 · in Show HN: Multiplayer NES Server in 77 Lines of Go -
…HttpRouter[1]. Even Gin lives on top of net/http, and most serious routers/frameworks do. [0] https://github.com/gin-gonic/gin [1] https://github.com/julienschmidt/httprouter
comment by themartorana · 2015-04-17 · in Moving from PHP to Go and Microservices -
…want to release this today... but there we go. Gin will also be a zero allocation http router. https://github.com/gin-gonic/gin/issues/249
comment by manucorporat · 2015-03-31 · in Echo: A fast HTTP router and micro framework in Go -
then go is the answer, take a look at, https://github.com/gin-gonic/gin
comment by thdn · 2015-02-04 · in Ask HN: Which language to learn (Golang or Scala)? -
Also check out Gin which is very lightweight and performant with a great API. https://github.com/gin-gonic/gin
comment by anonfunction · 2014-12-02 · in Benchmarking Phoenix vs. Rails vs. Sinatra vs. Express vs. Martini -
…handlers in the chain would never be called, this is very useful when authorisation is required. https://github.com/gin-gonic/gin/blob/master/auth.go#L76 Of course authorisation can be just applied to a group, you can see example in the…
comment by manucorporat · 2014-06-30 · in Show HN: Gin – Golang Martini-like web framework