Gearbox – A web framework written in Go
source link: https://github.com/abahmed/gearbox
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
gearbox ⚙️ is a web framework for building micro services written in Go with a focus on high performance and memory optimization. It's built on fasthttp which is 10x faster than net/http
In gearbox , we care about peformance and memory which will be used by each method while building things up and how we can improve that. It also takes more time to research about each component that will be used and compare it with different implementations of other open source web frameworks. It may end up writing our own components in an optimized way to achieve our goals
gearbox seeks to be
- Secure :closed_lock_with_key:
- Fast :rocket:
- Simple :eyeglasses:
- Easy to use
- Lightweight
Supported Go versions & installation
⚙️
gearbox requires version 1.11
or higher of Go ( Download Go )
Just use go get to download and install gearbox
go get -u github.com/abahmed/gearbox
Example
package main import ( "github.com/abahmed/gearbox" "github.com/valyala/fasthttp" ) func main() { // Setup gearbox gearbox := gearbox.New() // Define your handlers gearbox.Get("/hello", func(ctx *fasthttp.RequestCtx) { ctx.Response.SetBodyString("Hello World!") }) // Start service gearbox.Start(":3000") }
Contribute & Support
Check Our Wiki for more information about gearbox and how to contribute
Contributors
Get in touch!
Feel free to Join us on Gitter , or email us at [email protected] if you have questions, or suggestions
License
gearbox is licensed under MIT License
Logo is created by Mahmoud Sayed and distributed under Creative Commons License
Third-party library licenses
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK