All Products
Search
Document Center

Function Compute:Go

Last Updated:Jan 24, 2025

This topic describes the Go runtimes that Function Compute supports for writing your function code.

Go runtimes

Function Compute supports Go 1.x. We recommend that you use Go 1.8 or later.

Version

Operating system

Architecture

Go 1.x

Linux

x86_64

Important

Go runtimes must be used on Linux and do not support the ARM64 architecture.

SDKs for Go

Function Compute provides the following SDKs for Go:

  • FC SDK for Go: the tool used for implementing programming models in a Go runtime. Function Compute runs your handlers based on this package.

  • fccontext: the auxiliary library that provides context information for function execution.

  • examples: the sample code for the Go runtime.

  • events: the definitions of commonly used event sources.