All Products
Search
Document Center

Function Compute (2.0):Runtime environment

Last Updated:Mar 21, 2024

This topic describes the runtime environment for writing function code in Go in Function Compute.

Go runtime

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

The Go runtime must be used on Linux and does not support the ARM64 architecture.

SDK for Go and related tools

Function Compute provides the following SDK for Go and related tools:

  • Function Compute SDK for Go: the implementation of the programming model for the Go runtime. Function Compute processes handlers based on the SDK.

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

  • examples: the sample code for the Go runtime.