All Articles

Why are slices sometimes altered when passed by value in Go?

In this post we discuss what causes some changes to slices to be persisted even when they are passed by value, why this ultimately happens, and how to avoid it.

How to use slice capacity and length in Go

Learn about the difference between capacity and length and how to properly utilize them to make your Go code faster, cleaner, and memory efficient.

Wrapping packages to isolate code responsibility

When writing code in Go, or really any language, you will often find yourself using other packages to get things done. For example, you might use the net/http package as a basis for building a web server rather than writing all that code yourself. From time to time you might notice that the third party package doesn’t quite behave in a manner that is aligned with how you intend to use the package.

Inserting records into a PostgreSQL database with Go's database/sql package

Learn to insert new records into a Postgres database using Go's database/sql package, along with how to get the resulting ID of newly created records.

Where have all the blog posts gone?

My last blog post was published about 25 days ago, and the last update to my book probably happened around the same time. I have had several people ask me if I am going to continue publishing blog posts, or when the next chapter of my book will be out, so today I wanted to take a few minutes to explain what happened in my life that caused such a long gap between any updates.

Updating and Deleting records stored in a PostgreSQL table using SQL

A short tutorial that teaches how to update and delete records stored in an SQL database table using raw SQL statements.

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.