diff --git a/README.md b/README.md index b1d959b..f8db93f 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,9 @@ #### 组件工具 1. 安装 -> go install myschools.me/suguo/norm/my@latest +> go install myschools.me/suguo/snippet/snippet@latest 2. 使用 -> my -dl mysql +> snippet -dl mysql #### 组件实现 * MySQL diff --git a/go.mod b/go.mod index 2ad335c..228f439 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module myschools.me/suguo/norm +module myschools.me/suguo/snippet go 1.17 diff --git a/my/main.go b/snippet/main.go similarity index 94% rename from my/main.go rename to snippet/main.go index f71eb25..7e52b60 100644 --- a/my/main.go +++ b/snippet/main.go @@ -19,7 +19,7 @@ import ( ) const GITEA = "https://myschools.me" -const PATH = "/suguo/norm/src/branch/master" +const PATH = "/suguo/snippet/src/branch/master" var path string @@ -67,7 +67,7 @@ func dl(client http.Client, path string, wg *sync.WaitGroup) { func downloadFile(client http.Client, path, filename string, wg *sync.WaitGroup) { defer wg.Done() fmt.Println("start to download: ", filename) - fileURL := fmt.Sprintf("%s/suguo/norm/raw/branch/master/%s/%s", GITEA, path, filename) + fileURL := fmt.Sprintf("%s/suguo/snippet/raw/branch/master/%s/%s", GITEA, path, filename) resp, err := client.Get(fileURL) if err != nil { fmt.Printf("download file %s failed due to: %s\n", filename, err.Error()) diff --git a/test/sqlite_test.go b/test/sqlite_test.go index ee5a407..2d1e661 100644 --- a/test/sqlite_test.go +++ b/test/sqlite_test.go @@ -3,7 +3,7 @@ package test import ( "testing" - "myschools.me/suguo/norm/sqlite" + "myschools.me/suguo/snippet/sqlite" ) type ABC struct {