Step 3 – Setting up your Go workspace

To store your smart contract in a uniform location, create a workspace folder as follows:

$> mkdir -p $HOME/goapps/insurancechain

Edit the .bashrc file again, and add the following line at the end:

export GOPATH=$HOME/goapps

Once again, refresh your current session using source to set the new $GOPATH variable value.

Get Blockchain across Oracle now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.