recipes
chi
recipes | chi | |
---|---|---|
17 | 101 | |
2,868 | 17,113 | |
1.2% | 1.5% | |
9.7 | 7.1 | |
8 days ago | 25 days ago | |
Go | Go | |
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.
recipes
- Fiber – Express inspired web framework written in Go
-
go-mir - a toolkit to develop RESTful API backend service like develop service of gRPC
Mir is a toolkit to develop RESTful API backend service like develop service of gRPC. It adapt some HTTP framework sush as Gin, Chi, Hertz, Echo, Iris, Fiber, Macaron, Mux, httprouter。
-
Tools besides Go for a newbie
IDE: use whatever make you productive. I personally use vscode. VCS: git, as golang communities use github heavily as base for many libraries. AFAIK Linter: use staticcheck for linting as it looks like mostly used linting tool in go, supported by many also. In Vscode it will be recommended once you install go plugin. Libraries/Framework: actually the standard libraries already included many things you need, decent enough for your day-to-day development cycles(e.g. `net/http`). But here are things for extra: - Struct fields validator: validator - Http server lib: chi router , httprouter , fasthttp (for non standard http implementations, but fast) - Web Framework: echo , gin , fiber , beego , etc - Http client lib: most already covered by stdlib(net/http), so you rarely need extra lib for this, but if you really need some are: resty - CLI: cobra - Config: godotenv , viper - DB Drivers: sqlx , postgre , sqlite , mysql - nosql: redis , mongodb , elasticsearch - ORM: gorm , entgo , sqlc(codegen) - JS Transpiler: gopherjs - GUI: fyne - grpc: grpc - logging: zerolog - test: testify , gomock , dockertest - and many others you can find here
-
I know JavaScript and looking for Go learning resource
With lovely recipes: https://github.com/gofiber/recipes
-
The best Go framework: no framework? (Three Dots Tech)
If I started working at a Go shop that used a framework, I would hope it would be Fiber. Not for any particular solid reasons, though. Rather just personal preference based on how the developer experience feels to me personally.
- Criando uma API Rest com Fiber - Uma história pessoal de aprendizado
- Construindo uma API organizadinha em Golang usando Fiber
- Lightweight opensource Go-based spa-to-http tool "beats" Nginx in SPA serving performance
-
Ask HN: What GO web framework do you use?
I use Fiber [0] in production for a $4M ARR company and never had any issues.
Took less than a month to start with and integrate and it is a joy to use.
[0] https://github.com/gofiber/fiber
-
Framework or advices for API
Fiber is quite light weight and performant, its beginner friendly as well. The complexity of your app has to live somewhere. You are going to need a router at least, any framework that is lightweight and has sensible defaults is always worth considering over doing everything on your own. There are plenty of useful examples
chi
-
Deploy a Golang serverless function for a demo form with htmx
I use go-chi for handling routes and to server static file(stylesheet).
-
Preventing SQL Injection with Golang
This will be the structure of our project, we will use PostgreSQL as the database, go chi to create our endpoints, go dot env to import our environment variables.
- Chi: Lightweight, idiomatic and composable router for building Go HTTP services
-
Build a Golang Todo App Backend: A Step-by-Step Guide
go-chi: is a lightweight, idiomatic and composable router for building Go HTTP services.
- Evitando SQL Injection com Golang
- API completa em Golang - Parte 2
-
API completa em Golang - Parte 1
Go Chi para criar nossas rotas
-
newbie here looking for a framework
For HTTP I'd look at Chi https://github.com/go-chi/chi
-
The Gorilla web toolkit project is being revived, all repos are out of archive mode.
In fact, it has zero dependencies outside of std lib in it's core: https://github.com/go-chi/chi/blob/master/go.mod
-
is it possible to limit the body param size for all routes in net/http i'm also using go-chi
Interesting. go-chi added it as a middleware 4 months ago, but its not in the module docs since they haven't tagged a version since Dec 2022: https://github.com/go-chi/chi/blob/master/middleware/request_size.go
What are some alternatives?
go-clean-arch - Go (Golang) Clean Architecture based on Reading Uncle Bob's Clean Architecture
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.
fiber-go-template - 📝 Production-ready backend template with Fiber Go Web Framework for Create Go App CLI.
Echo - High performance, minimalist Go web framework
oapi-codegen - Generate Go client and server boilerplate from OpenAPI 3 specifications
mux - A powerful HTTP router and URL matcher for building Go web servers with 🦍
imgui-go-examples - Examples of Dear ImGui for Go
Fiber - ⚡️ Express inspired web framework written in Go
fiber-versioning-boilerplate - A boilerplate for fiber versioning, Clean Architecture, API versioning, API documentation, Data versioning
httprouter - A high performance HTTP request router that scales well
tutorial-go-fiber-rest-api - 📖 Build a RESTful API on Go: Fiber, PostgreSQL, JWT and Swagger docs in isolated Docker containers.
go-kit - A standard library for microservices.