go changedcli-sdks-libraries/sdks/go
Nearest release: v2.1.238, published under an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+3added
Lines−3removed
From line
26
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits12to this page, all time
The whole hunk
from line 26, old and new numbered
/
from line 26
2626
2727## Requirements
2828
29This library requires Go 1.23+.
29This library requires Go 1.24+.
3030
3131## Usage
3232
from line 560
560560```go
561561// A file from the file system
562562file, err := os.Open("/path/to/file.json")
563anthropic.BetaFileUploadParams{
563anthropic.FileUploadParams{
564564 File: anthropic.File(file, "custom-name.json", "application/json"),
565565}
566566
567567// A file from a string
568anthropic.BetaFileUploadParams{
568anthropic.FileUploadParams{
569569 File: anthropic.File(strings.NewReader("my file contents"), "custom-name.json", "application/json"),
570570}
571571```
No line in this hunk matches that.