fix: 修复依赖报错

This commit is contained in:
🐟 2023-09-18 15:58:52 +08:00
parent 2b22e2ad5c
commit 9ca9becf09
13 changed files with 21 additions and 18 deletions

View File

@ -1,10 +1,11 @@
package pkg
package archives
import (
"archive/tar"
"archive/zip"
"go.uber.org/zap"
"io"
"lab.evlic.cn/go/pkg/files"
"os"
"path/filepath"
)
@ -72,7 +73,7 @@ func decompressSave(name, dst string, file ArchiveFile) {
rd.Close()
return
}
err = FileSave(rd, dst)
err = files.FileSave(rd, dst)
rd.Close()
if err != nil {
zap.S().Infof("\tsave %#q err %#v: %q\n", name, err, err.Error())

View File

@ -1,4 +1,4 @@
package pkg
package archives
import (
"testing"

View File

@ -1,4 +1,4 @@
package pkg
package config
import (
"bytes"

View File

@ -1,7 +1,9 @@
package pkg
package config
import (
"encoding/json"
"lab.evlic.cn/go/pkg/str"
"sync"
"testing"
)
@ -34,6 +36,6 @@ func TestUn(t *testing.T) {
t.Fatal(err)
}
res, err := json.Marshal(r)
t.Log(B2S(res), err)
t.Log(str.B2S(res), err)
})
}

View File

@ -1,4 +1,4 @@
package pkg
package errors
import (
"fmt"

View File

@ -1,4 +1,4 @@
package pkg
package errors
import (
"testing"

View File

@ -1,4 +1,4 @@
package pkg
package files
import (
"bufio"

View File

@ -1,4 +1,4 @@
package pkg
package files
import (
"crypto/md5"

View File

@ -1,11 +1,11 @@
package pkg
package files
import (
"crypto/md5"
"errors"
"io"
"lab.evlic.cn/go/pkg/md5"
"mime/multipart"
os "os"
"os"
"path/filepath"
"strings"

View File

@ -1,4 +1,4 @@
package pkg
package set
import (
"strings"

View File

@ -1,4 +1,4 @@
package pkg
package set
import (
"testing"

View File

@ -4,8 +4,8 @@ import (
"fmt"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
"packet-flow/pkg/db"
"packet-flow/pkg/log"
"lab.evlic.cn/go/pkg/db"
"lab.evlic.cn/go/pkg/log"
)
const (

View File

@ -1,4 +1,4 @@
package pkg
package str
import (
"github.com/google/uuid"