Figure 3: This example performs the same task as the Python example in Figure 2 but is written in Go.