This is an example project I created for learning go: A REST API for a blog.
This is for the HTTP related stuff: server, routes, handlers and such.
This stores the data models, has interfaces for database access layers for the models.
Actual database implementation. Uses sqlx to cast database results into structs.
I am using MySQL as DBMS since I am already familiar with it. You can find an example database dump on resources/db.sql
.