修改包依赖名称

This commit is contained in:
2025-11-30 13:15:13 +08:00
parent ea4e2e305d
commit 719238b1f0
33 changed files with 701 additions and 98 deletions

View File

@@ -21,8 +21,8 @@
```go
import (
"github.com/go-common/config"
"github.com/go-common/storage"
"git.toowon.com/jimmy/go-commom/config"
"git.toowon.com/jimmy/go-commom/storage"
)
// 加载配置
@@ -50,7 +50,7 @@ if err != nil {
import (
"context"
"os"
"github.com/go-common/storage"
"git.toowon.com/jimmy/go-commom/storage"
)
// 打开文件
@@ -81,7 +81,7 @@ fmt.Printf("File URL: %s\n", url)
```go
import (
"net/http"
"github.com/go-common/storage"
"git.toowon.com/jimmy/go-commom/storage"
)
// 创建上传处理器
@@ -125,7 +125,7 @@ curl -X POST http://localhost:8080/upload \
```go
import (
"net/http"
"github.com/go-common/storage"
"git.toowon.com/jimmy/go-commom/storage"
)
// 创建代理查看处理器
@@ -144,7 +144,7 @@ GET /file?key=images/test.jpg
### 5. 生成对象键
```go
import "github.com/go-common/storage"
import "git.toowon.com/jimmy/go-commom/storage"
// 生成简单对象键
objectKey := storage.GenerateObjectKey("images/", "test.jpg")
@@ -288,9 +288,9 @@ import (
"log"
"net/http"
"github.com/go-common/config"
"github.com/go-common/middleware"
"github.com/go-common/storage"
"git.toowon.com/jimmy/go-commom/config"
"git.toowon.com/jimmy/go-commom/middleware"
"git.toowon.com/jimmy/go-commom/storage"
)
func main() {
@@ -344,8 +344,8 @@ import (
"log"
"os"
"github.com/go-common/config"
"github.com/go-common/storage"
"git.toowon.com/jimmy/go-commom/config"
"git.toowon.com/jimmy/go-commom/storage"
)
func main() {