Help us shape the future of Go! Take the 2026 Go Developer Survey

sdk

command
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Command sdk writes sdk/types_gen.go: a type alias in the public sdk package for every engine type an embedding caller has to be able to name.

The engine lives under internal/, so a caller outside this module cannot import it. The sdk package re-exports the embedding surface, and the types in that surface are aliases rather than copies so a value built through sdk is the engine's own value. Which types that is follows from the surface itself: every registered task, plus the API's own result and option types, plus every named engine type reachable through their exported fields. Writing that list by hand would miss the next task someone adds, so it is derived here by reflection and TestGeneratedSDKIsCurrent fails when the committed file falls behind.

It is run by `go generate` from the sdk directory, which is where the output is written.

Jump to

Keyboard shortcuts

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