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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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