This is an example API, built with Go and Iris. The codebase was created to show a working backend application in Go, with different options of database clients.
The repository is organized in 3 different branches:
- master
- bun
- pgx
- sqlx
The master branch contains only the file structres and example controllers. No DB, just the Iris framework.
Iris is a fast, simple yet fully featured and very efficient web framework for Go. It provides a beautifully expressive and easy to use foundation for your next website or API.
Simple and performant DB client for PostgreSQL, MySQL, and SQLite.
pgx is a pure Go driver and toolkit for PostgreSQL.
sqlx is a library which provides a set of extensions on go's standard database/sql library.
make run
Building just for current OS
make build
Buiding for multiple distributions
make build-all
make test
make cover-html
Everytime you call make test
or make cover-html
, the badge in README.md gets updated, but you can do it manually:
make badge
make clean
Feel free to contribute.
The logo is from @ashleymcnamara and can be found here.
Made with ❤ in Brazil.