Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Cloud Functions
  • Comparison with other Yandex Cloud services
    • Overview
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
    • Using the SDK
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ
  1. Developing in Go
  2. Overview

Developing in Go. Overview

Written by
Yandex Cloud
Improved by
Sasha M.
Updated at September 23, 2024

With Cloud Functions, you can run applications written in Go.

The service provides several runtime environments with different versions. We do not recommend using obsolete versions of runtime environments.

Name Go version Operating
system
Preloaded Supported by
golang116 1.16.15 Ubuntu 18.04 No No
golang117 1.17.8 Ubuntu 18.04 No No
golang118 1.18.5 Ubuntu 18.04 No No
golang119 1.19.3 Ubuntu 18.04 No No
golang121 1.21.9 Ubuntu 22.04 LTS No Yes

You can connect the SDK library to the runtime to work with the Yandex Cloud API. For more information about how to use the SDK, see Using the SDK.

When creating a new function version, the builder will automatically install all declared dependencies required for the function to run. For more information about requirements and restrictions, see Building and managing Go function dependencies.

Warning

The go.mod file must not state the Go language version, because the plugin generated by the builder must use exactly the same Go version as the runtime environment.

The runtime environment automatically loads your code and invokes the request handler you specified. It receives an incoming request and the invocation context as arguments. The context contains additional information about the function parameters.

Cloud Functions automatically captures an application's standard output streams and sends them to the centralized logging system available in Yandex Cloud. This system also logs service records about the start and end of each function and any errors that occur during its execution. For more information about the log format, see Go function runtime logging.

To learn more about how to write in Go or how certain statements work, we recommend taking A Tour of Go.

Was the article helpful?

Previous
Using the SDK
Next
Managing dependencies
Yandex project
© 2025 Yandex.Cloud LLC