Skip to content

docs(go): add missing context package in sample code#566

Merged
SteveSandersonMS merged 1 commit intogithub:mainfrom
feici02:go-sdk-readme
Feb 26, 2026
Merged

docs(go): add missing context package in sample code#566
SteveSandersonMS merged 1 commit intogithub:mainfrom
feici02:go-sdk-readme

Conversation

@feici02
Copy link
Contributor

@feici02 feici02 commented Feb 25, 2026

Add the missing context package in the sample code of Go SDK README.

Signed-off-by: WANG Xu <feici02@outlook.com>
Copilot AI review requested due to automatic review settings February 25, 2026 07:00
@feici02 feici02 requested a review from a team as a code owner February 25, 2026 07:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a documentation bug by adding the missing context package import to two complete Go code examples in the Go SDK README. Both examples use context.Background() multiple times but were missing the import statement, which would prevent the code from compiling if copied as-is.

Changes:

  • Added context import to the Quick Start example
  • Added context import to the Streaming example

@SteveSandersonMS
Copy link
Contributor

Thanks @feici02!

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.

3 participants