Black Friday Sale!
Save 50% on Web Development with Go and Test with Go until Dec 3.
Both courses have lifetime access, a 30-day money back guarantee, and free updates. This is also the biggest discount I offer on the courses, and I only do it once a year around Black Friday.
Thank you for your continued support and happy coding!
Jon Calhoun
This series was originally written for my mailing list. Want to get some awesome Go tutorials like this delivered to your inbox every week or two? You can sign up for my mailing list at signup.calhoun.io or via the form at the bottom of this page đŸ‘‡
Many people reading articles on this website will be familiar with my free course, Gophercises. In the course we work our way through many exercises that can be coded in Go, learning various Go techniques and how to use many of the Go libraries along the way.
I’ve always really enjoyed this style of teaching. It allows developers with limited time to still continue learning, and the way each exercise is consumed can be altered based on each person’s preferred learning style. One developer might prefer to code each exercise on their own first, then read over my implementation to see what differences there are, while another might use my walkthrough and implementation as a guide to learn how to complete an exercise they were struggling with. In either case, people are almost always coding along and trying parts of the exercise on their own, which I find to be the most valuable way to spend time when learning to code.
In this series I want to try something similar to the exercises in Gophercises, but rather than focusing on video content I am going to do this entirely in a written format. In this first post I’ll start by describing what we are doing, then in the next few articles I’ll walk through how I opted to approach the problem, the code I used, challenges I faced, etc. I’ll try to be an open book so you can understand my thinking rather than presenting you with a curated post pretending that I never make mistakes.
That’s it. Your goal is to try to build a blog that is powered by Go.
There are no strict requirements that you have to stick, but I would highly recommend breaking the project into manageable steps so that you don’t overwhelm yourself. For instance, it might make sense to start by building a really simple HTTP server that renders the raw markdown, then slowly expand it until you have the markdown converted into proper markdown and syntax highlighting on code blocks. After that you can start working on how to read the markdown from a file or from a repo on GitHub. Breaking down the problem this way ensures that you won’t ever take on too much at once and get frustrated or overwhelmed.
Personally, I am planning to build a very simplified web app to power a blog. I might eventually opt to use it for this website, but that is to be determined.
While building the application I’ll probably use the following steps:
This is a tentative plan though, so it could all change as I start working on the exercise.
Now get back to your editor and start coding your own blog!
This article is part of the series, Exercise: Building a Blog in Go.
If you are unsure of where to start, I recommend checking out a sample from my course, Web Development with Go. The sample includes 19 lessons that will help get you familiar enough with Go's net/http package to start working on this exercise.
You will also receive notifications when I release new articles, updates on upcoming courses (including FREE ones), and I'll let you know when my paid courses are on sale.
Jon Calhoun is a full stack web developer who teaches about Go, web development, algorithms, and anything programming. If you haven't already, you should totally check out his Go courses.
Previously, Jon worked at several statups including co-founding EasyPost, a shipping API used by several fortune 500 companies. Prior to that Jon worked at Google, competed at world finals in programming competitions, and has been programming since he was a child.
More in this series
This post is part of the series, Exercise: Building a Blog in Go.
Spread the word
Did you find this page helpful? Let others know about it!
Sharing helps me continue to create both free and premium Go resources.
Want to discuss the article?
See something that is wrong, think this article could be improved, or just want to say thanks? I'd love to hear what you have to say!
You can reach me via email or via twitter.
©2018 Jonathan Calhoun. All rights reserved.