A collection of 7 posts
Go Web Application Structure - Part 4 - Database Migrations & Business Logic
10 min read
Frameworks like Django and Rails are able to generate migration files based on the data models you define. Gorm doesn't have this feature, however, it does have some interfaces to make our lives easier when creating migrations.
Published in Go
Go Web Application Structure - Part 3 - The Database
6 min read
The database is a fundamental part of any application, whether you're using a simple database like sqlite or a graph database like neo4j, the data for our application must be persisted somewhere.
Published in Go
Go Web Application Structure - Part 2 - Routing/Serving
10 min read
Now that we have the skeleton for creating command line commands, we can start by creating a new "serve" command. This is similar to Django's "manage.py runserver" and Rails's "rails server".
Published in Go
Counter in Golang
2 min read
Continuing with “Python in Golang”, the next interesting data structure to dive into is the Counter. In Python, this class is also in the…
Published in Go, Algorithms
OrderedDict in Golang
1 min read
One of the most interesting data structures Python has built-in is the OrderedDict. It allows for O(1) lookups via a dictionary, while…
Published in Algorithms, Go
Converting jpeg to png with Golang
1 min read
A project I’m working on called “Comix” deals with comic images, and they’re not always the same format. To help keep the code consistent…
Published in Go
Go Web Application Structure - Part 1
5 min read
When writing Go applications, especially web applications, there isn't much documentation on how to do it the right way. This is both a blessing and a curse.
Published in Go