Open the example golang notebook and make a copy of it. Then, run the first cell to install golang, gophernotes. Then refresh and skip the first cell to test golang in later cells.
https://colab.research.google.com/drive/1-6XkA5OhEA6lMW9DvH4_AcXndC7WppJx
See a few examples here, especially Display.ipynb
I have updated the instruction. Now you must do everything in one notebook. The first cell is run as Python. Later cells are run as golang.