baidubce-sdk-go 非官方百度云 Go 语言 SDK 项目简介
baidubce-sdk-gobaidubce-sdk-go 是非官方百度云API的Go语言SDK。目前提供了BOS(百度云对象存储)Go SDK。简化了API调用。安装go get github.com/guoyao/baidubce-sdk-go/...范例func CreateBucket() {
bucketName := "baidubce-sdk-go"
err := bosClient.CreateBucket(bucketName, nil)
if err != nil {
log.Println(err)
} else {
err := bosClient.DeleteBucket(bucketName, nil)
if err != nil {
log.Println(err)
}
}
}
bucketName := "baidubce-sdk-go"
err := bosClient.CreateBucket(bucketName, nil)
if err != nil {
log.Println(err)
} else {
err := bosClient.DeleteBucket(bucketName, nil)
if err != nil {
log.Println(err)
}
}
}