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
Click to show internal directories.
Click to hide internal directories.