Update README

This commit is contained in:
Arnaud 2025-10-17 13:16:40 +02:00
parent 7218764de5
commit e30c492cf8
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F

View File

@ -174,8 +174,6 @@ onProgress := func(read, total int, percent float64, err error) {
cid, err := codex.UploadReader(UploadOptions{filepath: "hello.txt", onProgress: onProgress}, buf)
```
Caveat: once started, the upload cannot be cancelled.
#### file
The `file` strategy allows you to upload a file on Codex using the path.
@ -192,8 +190,6 @@ onProgress := func(read, total int, percent float64, err error) {
cid, err := codex.UploadFile(UploadOptions{filepath: "./testdata/hello.txt", onProgress: onProgress})
```
Caveat: once started, the upload cannot be cancelled.
#### chunks
The `chunks` strategy allows you to manage the upload by yourself. It requires more code
@ -249,8 +245,6 @@ opt := DownloadStreamOptions{
err := codex.DownloadStream(cid, opt)
```
Caveat: once started, the download cannot be cancelled.
#### chunks
The `chunks` strategy allows to manage the download by yourself. It requires more code