Comment on page
Becoming a Go developer
Contracts running on Orbs are developed in the Go programming language. This page will help you set up a working Go environment on your machine.
brew install go
Verify Go is installed correctly by running in terminal
Any version above 1.11 should suffice.
Go creates a workspace on your machine where source files should be placed. This is a bit different from other programming languages which are less opinionated about the location of your source files.
Unless configured explicitly otherwise, your Go workspace is found at
The common convention is to place files in a directory structure that mirrors easily to Github. If your Github username is
johnsnowand your repo name is
mycontractyou should place your files at
brew cask install atom
apm install go-plus
One of the main benefits of the Go programming language is its simplicity. It should not require more than a few days to gain a firm grasp of the syntax.
If you don't feel like learning the language first that's also fine. Most of the contract examples are simple enough to understand without any prior knowledge.