Extended Courses Discount
My Go courses are discounted for the next few weeks to help out anyone who may need or want access to them. I'm also going to try to help out anyone who can't afford a course, and I will be writing posts about working from home over the next week in an attempt to help anyone new to WFH. Read more here.
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.
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.
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.
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.
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.
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.
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
©2018 Jonathan Calhoun. All rights reserved.