compile_go

command
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

compile_go demonstrates compiling and running Go code in a sandboxed environment.

This example shows how to: - Use FilesystemSnapshotFactory to cache the Go build environment - Pull an OCI image (golang:1.22-alpine) - Create a sandbox instance from a cached snapshot - Write Go source code to the filesystem - Compile the code using go build - Execute the compiled binary

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL