Writing Chaincode
Before we start coding, you can choose to use an IDE for Go, or you may choose the old-fashioned route of Vim or Notepad. There are many popular IDEs which support Go development, for example Visual Studio Code (VSC) (https://code.visualstudio.com/docs/languages/go), JetBrains Goland, or Eclipse with the goEclipse plugin. Here, we recommend using VSC. You can refer to the official VSC documentation for setup and configuration instructions.
To start writing Chaincode, it's recommended that you download the project files from the code file section for this book on the Packt website. There is a starter project called food-supply-chain_start. You can import this project to your VSC and open the foodcontract.go file located under ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access