fix the example of get, reorder the import package

This commit is contained in:
toranger
2019-08-01 15:47:44 +08:00
parent c6dda8e276
commit 8f7671b3c4
2 changed files with 7 additions and 7 deletions

View File

@@ -3,13 +3,11 @@ package main
import (
"context"
"fmt"
"net/url"
"os"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
"github.com/tencentyun/cos-go-sdk-v5"
"github.com/tencentyun/cos-go-sdk-v5/debug"
@@ -55,7 +53,7 @@ func main() {
resp.Body.Close()
// Case3 Download object to local file path
err = c.Object.GetToFile(context.Background(), name, "hello_1.txt", nil)
_, err = c.Object.GetToFile(context.Background(), name, "hello_1.txt", nil)
if err != nil {
panic(err)
}