Building with Go

Set up development environment

To build and run the Go runtime for FunctionGraph, you need to set up your development environment by installing the Go programming language.

Operating system

This guide assumes that you are using a Unix-like operating system such as

Install Go

  1. Download the Go installation package for your operating system from the official Go website.

  2. Follow the installation instructions provided on the website to install Go on your system.

Install an IDE

You can use any text editor or IDE to write Go code.

To maximize your Go development efficacy, follow the Go recommendations on Editor plugins and IDEs.

These provide the following features:

  • Fully integrated debugging capabilities

  • Syntax highlighting

  • Code completion

Note

Examples in this documentation were created using:

  • WSL and

  • Visual Studio Code.