Skip to content

fix: fix outdated config initialization (EndpointResolver) in Go SDK documentation #83

Open
ZureTz wants to merge 1 commit intorustfs:mainfrom
ZureTz:fix-deprecated
Open

fix: fix outdated config initialization (EndpointResolver) in Go SDK documentation #83
ZureTz wants to merge 1 commit intorustfs:mainfrom
ZureTz:fix-deprecated

Conversation

@ZureTz
Copy link

@ZureTz ZureTz commented Mar 16, 2026

This pull request updates the Go SDK documentation for configuring an S3 client, focusing on how the endpoint is set in the AWS configuration. Changed the way the custom endpoint is specified when creating the S3 client to the not deprecated one. (See here)

Code 2026-03-16 12 49 05

Copilot AI review requested due to automatic review settings March 16, 2026 04:54
@vercel
Copy link

vercel bot commented Mar 16, 2026

@ZureTz is attempting to deploy a commit to the overtrue's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

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 updates the Go SDK documentation for RustFS to configure the S3 client’s custom endpoint using the newer, non-deprecated approach in AWS SDK for Go v2.

Changes:

  • Removes use of aws.Config.EndpointResolver in the example configuration.
  • Sets the custom endpoint via s3.NewFromConfig options (o.BaseEndpoint = aws.String(endpoint)).

You can also share your feedback on Copilot code review. Take the survey.

@ZureTz ZureTz changed the title Fix outdated config initialization (EndpointResolver) fix: fix outdated config initialization (EndpointResolver) in Go SDK documentation Mar 16, 2026
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.

2 participants