Skip to content

Fix broken Go client code samples#184

Draft
prodalex wants to merge 1 commit intomainfrom
feat/fix-go-client-docs
Draft

Fix broken Go client code samples#184
prodalex wants to merge 1 commit intomainfrom
feat/fix-go-client-docs

Conversation

@prodalex
Copy link

Summary

  • Fix the "Upload a CAR" code sample that was explicitly marked as broken/out-of-date
  • Replace deprecated ioutil.ReadFile with os.ReadFile in both code samples
  • Update to current guppy client API (client.NewClient + SpaceBlobAdd) based on actual examples in the guppy repo

Deliverables

File Status Summary
src/pages/go-client.mdx Modified Updated both Go code samples to use current guppy API

What changed

  • Removed the red "out of date" error callout
  • ioutil.ReadFileos.ReadFile (ioutil deprecated since Go 1.16)
  • signer.Parse()signer.FromRaw() (matches guppy examples)
  • Replaced entire Upload a CAR sample: client.StoreAdd/storeadd.Caveatclient.NewClient() + c.SpaceBlobAdd()
  • Fixed typo in import path (storachasstoracha)
  • Updated UploadAdd snippet to current API

Test plan

  • All 6 acceptance criteria pass
  • Automated code review passed
  • Visual check on dev server

🤖 Generated with Claude Code

The "Upload a CAR" code sample was explicitly marked as out of date and
used removed APIs (client.StoreAdd, storeadd.Caveat) with a typo in the
import path. Updated both code samples to use the current guppy client
API (client.NewClient + SpaceBlobAdd) and replaced deprecated ioutil
with os.ReadFile.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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