From 8432dfa371d039059f074e8ef26cbe05d8681b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AF=9B=E5=87=AF=E5=BC=BA?= Date: Wed, 8 Nov 2023 23:13:53 +0800 Subject: [PATCH] rm username --- r2/README.md | 2 +- r2/r2_test.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/r2/README.md b/r2/README.md index f49416f..3d12fb9 100644 --- a/r2/README.md +++ b/r2/README.md @@ -5,7 +5,7 @@ ## Usage ```go -import "https://github.com/creaplus/oss" +import "https://github.com/cassdor/oss" func main() { storage := r2.New(&r2.Config{{ diff --git a/r2/r2_test.go b/r2/r2_test.go index 2c1501f..4e4d8c4 100644 --- a/r2/r2_test.go +++ b/r2/r2_test.go @@ -9,11 +9,11 @@ import ( ) type Config struct { - AccountId string `env:"CREAPLUS_CF_R2_Account_ID"` - AccessKeyId string `env:"CREAPLUS_CF_R2_ACCESS_KEY_ID"` - AccessKeySecret string `env:"CREAPLUS_CF_R2_ACCESS_KEY_SECRET"` - Bucket string `env:"CREAPLUS_CF_R2_BUCKET"` - Endpoint string `env:"CREAPLUS_CF_R2_ENDPOINT"` + AccountId string `env:"CF_R2_Account_ID"` + AccessKeyId string `env:"CF_R2_ACCESS_KEY_ID"` + AccessKeySecret string `env:"CF_R2_ACCESS_KEY_SECRET"` + Bucket string `env:"CF_R2_BUCKET"` + Endpoint string `env:"CF_R2_ENDPOINT"` } var (