All Articles

Template Actions and Nested Templates in Go

This article on Go templates explains how to use common actions like if/else and range to create more dynamic outputs. After that we examine how to create nested templates and use them to avoid code repition.

Cost of living adjusted salaries are terrible for remote employees

Imagine interviewing with a company for a position, performing well on the interviews, and finally getting a call with your recruiter only to have the conversation go like this: Recruiter: “Hi! I am calling because you did great during your interviews. Before we can continue, would you mind sharing with me what you currently pay in rent?” You: “That is great! I’m not sure why this is relevant, but our apartment is $2400/mo.

An Intro to Templates in Go - Contextual Encoding

A brief intro on how to create your first template in Go, which will allow you to create dynamic HTML pages. After that we explore how the variables are encoded depending on their context.

Path Prefix Middleware in Go

This article covers how to use the http.ServeMux provided by Go's standard libary in order to apply middleware to specific path prefixes (eg /dashboard/*) while ensuring the middleware isn't run on other paths.

Why is this string a byte array and other info about strings in Go

Ever wonder why a string is a byte slice in Go, or how to properly splice a string? In this article we discuss some common things that confuse beginners about strings, as well as how to work with them a little more efficiently.

Add goimports to Sublime Text 3

This should workin pretty much any version of Sublime Text, but I have only tested it in Sublime Text 3. I no longer use Sublime Text in my day to day Go development, and I instead use Atom. I’m hoping to eventually come back to Sublime Text, and I have toyed around with building a Go plugin for ST3, but as of Jan, 2018 Atom simply has better Go support with the go-plus plugin.

Avatar of Jon Calhoun
Articles and Tutorials by
Jon Calhoun

Jon Calhoun is a full stack web developer who also teaches about Go, web development, algorithms, and anything programming related. He also consults for other companies who have development needs. (If you need some development work done, get in touch!)

Jon is a co-founder of EasyPost, a shipping API that many fortune 500 companies use to power their shipping infrastructure, and prior to founding EasyPost he worked at google as a software engineer.

Jon's latest progress update: Writing Course Notes

Recent Articles All Articles Mini-Series Progress Updates Tags About Me Go Courses

©2018 Jonathan Calhoun. All rights reserved.