Skip to content

fix(go): correct README example to match actual SDK API#387

Merged
DorianZheng merged 1 commit into
mainfrom
fix/go-readme-api-example
Mar 15, 2026
Merged

fix(go): correct README example to match actual SDK API#387
DorianZheng merged 1 commit into
mainfrom
fix/go-readme-api-example

Conversation

@DorianZheng

Copy link
Copy Markdown
Member

Summary

  • Fix Go SDK README example to use the actual API: rt.Create() with functional options instead of non-existent rt.CreateBox()/NewBoxOptions()
  • WithMemoryMBWithMemory, box.Start()box.Start(ctx)

Test plan

  • Verified example compiles from external temp directory
  • All Go SDK tests pass (15/15)

CreateBox/NewBoxOptions/WithMemoryMB don't exist. The real API uses
rt.Create() with functional options (WithName, WithCPUs, WithMemory)
and box.Start(ctx) requires a context parameter.
@DorianZheng DorianZheng merged commit 51bd955 into main Mar 15, 2026
16 checks passed
@DorianZheng DorianZheng deleted the fix/go-readme-api-example branch March 15, 2026 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant