Repository navigation
feat: go v6 docs - #260
Merged
Merged
feat: go v6 docs#260
Conversation
Justin Hammond (Justintime50)
marked this pull request as ready for review
November 18, 2026 18:17
Justin Hammond (Justintime50)
requested a review
from a team
as a code owner
November 18, 2026 18:17
Stephen Watkins (stephenjwatkins)
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cuts the Go examples for the v6.0.0 release of
easypost-go, following the same approach as #259 (node v9 docs).docs/golang/currenttodocs/golang/v5(no changes in that commit)docs/golang/currentfor v6. All 125 files switch their import from/v5to/v6. Every file is otherwise copied as-is except these six:rates/retrieve-stateless.go:rates, _ := client.BetaGetStatelessRates(...)becomesresponse, _ := client.BetaGetStatelessRates(...)withfmt.Println(response.Rates). In v6,BetaGetStatelessRatesreturns the full response (*GetStatelessRatesResult) instead of only therateskey (rate.go, Upgrade Guide).billing/retrieve-stripe-public-key.go:RetrieveEasypostStripeApiKeybecomesRetrieveEasypostStripeAPIKey.billing/add-stripe-bank-account.go:MandateData.IpAddressbecomesIPAddress.customer-portals/create.go:UserId,RefreshUrlandReturnUrlbecomeUserID,RefreshURLandReturnURL.embeddables/session.go:UserIdbecomesUserID.tax-identifiers/create.go:TaxIdandTaxIdTypebecomeTaxIDandTaxIDType.go.modtogo 1.20(v6's minimum) and addsgithub.com/EasyPost/easypost-go/v6 v6.0.0. The v2 through v5 requirements are unchanged, so the older folders still build against their own majors.I checked the other v6 breaking changes against
current, and none need a snippet change:trackers/list.goonly passesPageSize, so removingListTrackersOptions.TrackingCodedoesn't affect it.trackers/batch.goalready usesTrackingCodes.ShipmentOptions.Machinable.just lint-go(golangci-lint v2.15.0) reports 0 issues oncurrent, andgo vetpasses ondocs/golang/currentanddocs/golang/v5.lint-goonly lintscurrent, the same as before, so no CI or justfile changes are needed.No web-docs path changes are needed. easypost-web-docs only imports
docs/golang/current/..., so it picks this up on its next examples submodule bump.