Skip to content

Commit 1f1f80c

Browse files
committed
base
1 parent a01e5c2 commit 1f1f80c

File tree

15 files changed

+38
-24
lines changed

15 files changed

+38
-24
lines changed

check/check.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ package check
33
import (
44
"encoding/base64"
55
"encoding/json"
6-
"etms/pkg/bytex"
7-
"etms/pkg/strx"
86
"net"
97
"net/url"
108
"regexp"
119
"strconv"
1210
"strings"
1311
"time"
1412
"unicode"
13+
14+
"github.com/livexy/pkg/bytex"
15+
"github.com/livexy/pkg/strx"
1516
)
1617

1718
// 用户名

compress/compress.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package compress
22

33
import (
44
"encoding/base64"
5-
"etms/pkg/bytex"
6-
"etms/pkg/logx"
7-
"etms/pkg/strx"
5+
6+
"github.com/livexy/pkg/bytex"
7+
"github.com/livexy/pkg/logx"
8+
"github.com/livexy/pkg/strx"
89

910
"github.com/klauspost/compress/zstd"
1011
"go.uber.org/zap"

compress/zip.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ import (
44
"archive/zip"
55
"bytes"
66
"errors"
7-
"etms/pkg/bytex"
8-
"etms/pkg/strx"
97
"io"
108
"os"
119
"path"
1210
"path/filepath"
1311
"strings"
1412

13+
"github.com/livexy/pkg/bytex"
14+
"github.com/livexy/pkg/strx"
15+
1516
"golang.org/x/text/encoding/simplifiedchinese"
1617
"golang.org/x/text/transform"
1718
)

crypto/aesx/aes.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import (
55
"crypto/aes"
66
"crypto/cipher"
77
"encoding/base64"
8-
"etms/pkg/bytex"
9-
"etms/pkg/strx"
8+
9+
"github.com/livexy/pkg/bytex"
10+
"github.com/livexy/pkg/strx"
1011
)
1112

1213
// AES加密

crypto/argon2id/argon2id.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package argon2id
22

33
import (
4-
"etms/pkg/logx"
4+
"github.com/livexy/pkg/logx"
55

66
argon "github.com/alexedwards/argon2id"
77
"go.uber.org/zap"

crypto/base64x/base64.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ package base64x
22

33
import (
44
"encoding/base64"
5-
"etms/pkg/bytex"
6-
"etms/pkg/strx"
5+
6+
"github.com/livexy/pkg/bytex"
7+
"github.com/livexy/pkg/strx"
78
)
89

910
// 加base64

crypto/rsax/rsa.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import (
66
"crypto/x509"
77
"encoding/base64"
88
"encoding/pem"
9-
"etms/pkg/bytex"
10-
"etms/pkg/strx"
9+
10+
"github.com/livexy/pkg/bytex"
11+
"github.com/livexy/pkg/strx"
1112
)
1213

1314
// RSA生成公私密钥

email/email.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ package email
22

33
import (
44
"crypto/tls"
5-
"etms/pkg/bytex"
6-
"etms/pkg/logx"
7-
"etms/pkg/strx"
85
"net/smtp"
96
"strings"
107

8+
"github.com/livexy/pkg/bytex"
9+
"github.com/livexy/pkg/logx"
10+
"github.com/livexy/pkg/strx"
11+
1112
"go.uber.org/zap"
1213
)
1314

filex/file.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ import (
55
"bytes"
66
"crypto/md5"
77
"encoding/hex"
8-
"etms/pkg/bytex"
98
"image"
109
"io"
1110
"os"
1211
"path"
1312
"path/filepath"
1413
"strings"
1514

15+
"github.com/livexy/pkg/bytex"
16+
1617
"golang.org/x/text/encoding/simplifiedchinese"
1718
"golang.org/x/text/transform"
1819
)

ipx/ip.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package ipx
22

33
import (
4-
"etms/pkg/logx"
54
"net"
65
"strings"
76
"sync"
87

8+
"github.com/livexy/pkg/logx"
9+
910
"github.com/lionsoul2014/ip2region/binding/golang/xdb"
1011
"go.uber.org/zap"
1112
)

0 commit comments

Comments
 (0)