Hacker GitHub

← All repos

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

Mentions per year 39 mentions · busiest year 2016 (9)
20082026
  1. …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
  2. …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]…
  3. …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?
  4. …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)…
  5. …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 )
  6. …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
  7. …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.
  8. …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
  9. the name usage of "gin" is quite common, it seems: https://github.com/gin-gonic/gin
  10. 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.
  11. …a transitive dependency, but your dependencies can offer configuration like Gonic does. [0] [0] https://github.com/gin-gonic/gin#build-with-jsoniter
  12. …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.
  13. …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
  14. …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
  15. …(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…
  16. …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
  17. …into building something without having to dive into doing a lot of http.Server research. [1] https://github.com/gin-gonic/gin
  18. …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]…
  19. …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…
  20. https://github.com/gin-gonic/gin
  21. …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
  22. …) 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/ )…
  23. …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.
  24. 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
  25. …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
  26. …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
  27. Is there much difference between Lion and the router in Gin ( https://github.com/gin-gonic/gin )?
  28. 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
  29. …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
  30. 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.
  31. …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
  32. …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
  33. then go is the answer, take a look at, https://github.com/gin-gonic/gin
  34. Also check out Gin which is very lightweight and performant with a great API. https://github.com/gin-gonic/gin
  35. …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…