- Optimized HTTP router which smartly prioritize routes
- Build robust and scalable RESTful APIs
- Group APIs
- Extensible middleware framework
- Define middleware at root, group or route level
- Data binding for JSON, XML and form payload
- Handy functions to send variety of HTTP responses
- Centralized HTTP error handling
- Template rendering with any template engine
- Define your format for the logger
- Highly customizable
- Automatic TLS via Let’s Encrypt
- HTTP/2 support
$ go run main.go
The fantastic ORM library for Golang, aims to be developer friendly.
- Full-Featured ORM (almost)
- Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism)
- Hooks (Before/After Create/Save/Update/Delete/Find)
- Preloading (eager loading)
- Transactions
- Composite Primary Key
- SQL Builder
- Auto Migrations
- Logger
- Extendable, write Plugins based on GORM callbacks
- Every feature comes with tests
- Developer Friendly
Go code (golang) set of packages that provide many tools for testifying that your code will behave as you intend.
Install:
$ go get -u github.com/stretchr/testify/assert
Use:
$ go test ./tests
Swag converts Go annotations to Swagger Documentation 2.0. And provides a variety of builtin web framework lib. Let you can quickly integrated in existing golang project(using Swagger UI).
Install:
$ go get -u github.com/swaggo/swag/cmd/swag
Make sure you have a GOBIN system enviroument variable.
Use:
$ swag init
Especification in: https://swaggo.github.io/swaggo.io/