Go

Updated at:

Learn about Go runtime support and SDKs in Function Compute.

Go runtimes

Function Compute supports Go 1.x. Use Go 1.8 or later.

Version

Operating system

Architecture

Go 1.x

Linux

x86_64

Important

Go runtimes run on Linux only. ARM64 is not supported.

SDKs for Go

Function Compute provides these Go SDKs:

  • FC SDK for Go: implements the Go programming model. Function Compute runs your handlers with this package.

  • fccontext: provides context information during function execution.

  • examples: sample code for Go functions.

  • events: definitions for common event sources.