|3 months ago||11 days ago|
|MIT License||MIT License|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Migrating from PHP to Go
upper.io is a viable alternative to GORM. Just a suggestion.
We Went All in on Sqlc/Pgx for Postgres and Go
31 projects | news.ycombinator.com | 8 Sep 2021
this is the reason why I chose upper/db over pgx/sqlc for my current cockroachdb side project
while upper/db is not as type safe, with proper testing infrastructure, it's the closest to django due to its simplicity/composability/query building support
i'm also excited to see how upper/db grows after generics land in Go later this year
Has anybody moved from Django (python) to any of the Go backend frameworks?
7 projects | reddit.com/r/golang | 10 Jun 2021
So far, I've enjoyed using https://github.com/upper/db for raw query building.
New advanced, CGo-free SQLite package
4 projects | reddit.com/r/golang | 30 Apr 2021
4 Things to Consider When Choosing a Go API Framework
5 projects | dev.to | 16 Nov 2021
Eli Bendersky has an excellent series where they walk you through building a REST API in Go by first starting with the standard library and then introducing a router such as gorilla or chi and finally switching over to using a complete web framework. This series shows some of the downsides of sticking with the standard library entirely and how extra libraries such as the two router packages above can be extremely helpful.
Would it be better to use Frameworks or not ?
3 projects | reddit.com/r/golang | 25 Oct 2021
If you purely build a rest api using core modules will get you pretty far. There are multiple small wrappers out there that provide better routing and possibly a nicer api. As an example https://github.com/go-chi/chi is only 1K LOC and compatible with handleFunc.
Release v2.20.0 · gofiber/fiber
2 projects | reddit.com/r/golang | 6 Oct 2021
I really like chi. Feels like an extension for the go http lib
Migrating from PHP to Go
https://github.com/go-chi/chi for routing, it has a nice interface, and is extremely light on resources (not a big deal for a router, but if it's available with a nice API, why not?
I'm a big fan of [Twirp RPC](https://github.com/twitchtv/twirp), and [go-chi/chi](https://github.com/go-chi/chi) if I need to provide REST endpoints, authentication or other routing middleware. The "gorilla" set of packages are also useful, I always reach for gorilla/websocket if I need to do some websocket work. You can look at an example service in [go-bridget/notify](https://github.com/go-bridget/notify) - the main files to look at are under rpc/notify/notify.proto/.go, and the implementation which you write is under server/notify. If you'd create database drivers, I'd create a package under server/notify/mysql (for example), and then implement an interface for data retrieval/settings. It's on the todolist, if I'll ever need to implement anything other than JWT, or Redis. Comment if you have any questions or notes.
Router/mux for golang.
1 project | reddit.com/r/golang | 5 Sep 2021
I’m personally a fan of chi router. Fast, works with standard http package handlers.
What are your favorite packages to use?
chi for routing
Chi HTTP Router
Here is link number 2 - Previous text "Chi"
https://github.com/derision-test/go-mockgen for the best mocks Ive ever had in Go https://github.com/go-chi/chi for HTTP routing
What are some alternatives?
Gin - Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
mux - A powerful HTTP router and URL matcher for building Go web servers with 🦍
Echo - High performance, minimalist Go web framework
httprouter - A high performance HTTP request router that scales well
GORM - The fantastic ORM library for Golang, aims to be developer friendly
Fiber - ⚡️ Express inspired web framework written in Go
go-kit - A standard library for microservices.
negroni - Idiomatic HTTP Middleware for Golang
Goji - Goji is a minimalistic and flexible HTTP request multiplexer for Go (golang)
Iris - The fastest HTTP/2 Go Web Framework. AWS Lambda, gRPC, MVC, Unique Router, Websockets, Sessions, Test suite, Dependency Injection and more. A true successor of expressjs and laravel | 谢谢 https://github.com/kataras/iris/issues/1329 |
ent - An entity framework for Go
Beego - beego is an open-source, high-performance web framework for the Go programming language.