Module 12 of 12

Building & Shipping

Lessons

About This Module

A program only becomes useful once other people can run it. Go makes this unusually simple: it compiles to a single self-contained binary, which keeps packaging and deployment lightweight compared with many other languages.

This module starts with building and cross-compiling binaries for different operating systems. It then covers Docker for packaging your application, setting up continuous integration with GitHub Actions so your tests run automatically, and finally deploying a Go application.

Watch the lessons in order and ship one of your own programs end to end, then put everything together in the Projects section.

Lessons

4 videos
01

Building Go Executables: Cross compilation made easy!

Building Go executables and cross-compiling them for other operating systems and architectures.

02

Dockerfile for Golang Step by Step (multi-stage build with distroless/scratch)

Packaging a Go application in a Docker image using a multi-stage build to keep the final image small.

03

How to bootstrap GitHub Actions CI for a Go project

Setting up GitHub Actions so a Go project is built and checked automatically.

04

How to Deploy Golang Applications (Complete Guide)

A walkthrough of getting a Go application deployed and running.