Skip to content

Commit

Permalink
Merge pull request #2 from lifegit/v2
Browse files Browse the repository at this point in the history
V2
  • Loading branch information
lifegit authored Jul 5, 2021
2 parents eefa8d9 + b7c6a2a commit 9eddf75
Show file tree
Hide file tree
Showing 24 changed files with 30 additions and 28 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# go-gulu
go 轱辘

v2 版本
2 changes: 1 addition & 1 deletion conv/arrayconv/arrayconv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package arrayconv_test

import (
"github.com/lifegit/go-gulu/conv/arrayconv"
"github.com/lifegit/go-gulu/v2/conv/arrayconv"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion conv/arrayconv/removeRepeat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package arrayconv_test

import (
"github.com/lifegit/go-gulu/conv/arrayconv"
"github.com/lifegit/go-gulu/v2/conv/arrayconv"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion conv/byteconv/byteconv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package byteconv_test

import (
"github.com/lifegit/go-gulu/conv/byteconv"
"github.com/lifegit/go-gulu/v2/conv/byteconv"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion conv/stringconv/stringconv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package stringconv_test

import (
"github.com/lifegit/go-gulu/conv/stringconv"
"github.com/lifegit/go-gulu/v2/conv/stringconv"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion conv/structureconv/structureconv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package structureconv_test

import (
"github.com/lifegit/go-gulu/conv/structureconv"
"github.com/lifegit/go-gulu/v2/conv/structureconv"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/lifegit/go-gulu
module github.com/lifegit/go-gulu/v2

go 1.16

Expand Down
6 changes: 3 additions & 3 deletions nice/file/upload/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ package upload

import (
"fmt"
"github.com/lifegit/go-gulu/nice/crypto"
"github.com/lifegit/go-gulu/nice/file"
"github.com/lifegit/go-gulu/nice/rand"
"github.com/lifegit/go-gulu/v2/nice/crypto"
"github.com/lifegit/go-gulu/v2/nice/file"
"github.com/lifegit/go-gulu/v2/nice/rand"
"os"
"path"
"strconv"
Expand Down
4 changes: 2 additions & 2 deletions nice/file/upload/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package local
import (
"errors"
"github.com/gin-gonic/gin"
"github.com/lifegit/go-gulu/nice/file"
upload2 "github.com/lifegit/go-gulu/nice/file/upload"
"github.com/lifegit/go-gulu/v2/nice/file"
upload2 "github.com/lifegit/go-gulu/v2/nice/file/upload"
"io"
"os"
"strconv"
Expand Down
2 changes: 1 addition & 1 deletion nice/file/upload/oss/oss.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"errors"
"github.com/aliyun/aliyun-oss-go-sdk/oss"
"github.com/gin-gonic/gin"
upload2 "github.com/lifegit/go-gulu/nice/file/upload"
upload2 "github.com/lifegit/go-gulu/v2/nice/file/upload"
"strconv"
)

Expand Down
2 changes: 1 addition & 1 deletion nice/person/captcha.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package person

import (
"github.com/go-redis/redis"
"github.com/lifegit/go-gulu/pkg/gredis/cacheCount"
"github.com/lifegit/go-gulu/v2/pkg/gredis/cacheCount"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion nice/person/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package person

import (
"github.com/go-redis/redis"
"github.com/lifegit/go-gulu/pkg/gredis/cacheCount"
"github.com/lifegit/go-gulu/v2/pkg/gredis/cacheCount"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions nice/person/password.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package person

import (
"errors"
"github.com/lifegit/go-gulu/nice/crypto"
"github.com/lifegit/go-gulu/nice/rand"
"github.com/lifegit/go-gulu/v2/nice/crypto"
"github.com/lifegit/go-gulu/v2/nice/rand"
"github.com/wenzhenxi/gorsa"
"golang.org/x/crypto/bcrypt"
"strconv"
Expand Down
4 changes: 2 additions & 2 deletions pkg/fire/crud.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"errors"
"fmt"
"github.com/imdario/mergo"
"github.com/lifegit/go-gulu/conv/arrayconv"
"github.com/lifegit/go-gulu/conv/structureconv"
"github.com/lifegit/go-gulu/v2/conv/arrayconv"
"github.com/lifegit/go-gulu/v2/conv/structureconv"
"gorm.io/gorm"
"gorm.io/gorm/clause"
"gorm.io/gorm/schema"
Expand Down
2 changes: 1 addition & 1 deletion pkg/fire/pageParam_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package fire_test

import (
"github.com/gin-gonic/gin"
"github.com/lifegit/go-gulu/pkg/out"
"github.com/lifegit/go-gulu/v2/pkg/out"
"github.com/stretchr/testify/assert"
"net/http"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion pkg/ginMiddleware/mwJwt/mwJwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package mwJwt

import (
"github.com/gin-gonic/gin"
"github.com/lifegit/go-gulu/pkg/jwt"
"github.com/lifegit/go-gulu/v2/pkg/jwt"
"net/http"
"strings"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/ginMiddleware/mwLogger/mwLogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"
"github.com/gin-gonic/gin"
"github.com/lifegit/go-gulu/pkg/logging"
"github.com/lifegit/go-gulu/v2/pkg/logging"
"github.com/sirupsen/logrus"
"io"
"net/http"
Expand Down
2 changes: 1 addition & 1 deletion pkg/gredis/mobileCode/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package mobileCode

import (
"github.com/lifegit/go-gulu/nice/rand"
"github.com/lifegit/go-gulu/v2/nice/rand"
"regexp"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package logging

import (
"github.com/lestrrat-go/file-rotatelogs"
"github.com/lifegit/go-gulu/nice/file"
"github.com/lifegit/go-gulu/v2/nice/file"
"github.com/rifflock/lfshook"
"github.com/sirupsen/logrus"
"os"
Expand Down
2 changes: 1 addition & 1 deletion pkg/paramValidator/validateCreate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package paramValidator_test

import (
"github.com/lifegit/go-gulu/pkg/paramValidator"
"github.com/lifegit/go-gulu/v2/pkg/paramValidator"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/viperine/viperine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package viperine_test
import (
"fmt"
"github.com/fsnotify/fsnotify"
"github.com/lifegit/go-gulu/pkg/viperine"
"github.com/lifegit/go-gulu/v2/pkg/viperine"
"github.com/sirupsen/logrus"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion sync/eventGroup/eventGroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package eventGroup_test

import (
"fmt"
"github.com/lifegit/go-gulu/sync/eventGroup"
"github.com/lifegit/go-gulu/v2/sync/eventGroup"
"testing"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion sync/rwMutexLog/rwMutexLog.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package rwMutexLog

import (
"fmt"
"github.com/lifegit/go-gulu/pkg/logging"
"github.com/lifegit/go-gulu/v2/pkg/logging"
"github.com/sirupsen/logrus"
"runtime"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion sync/rwMutexLog/rwMutexLog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package rwMutexLog_test

import (
"fmt"
"github.com/lifegit/go-gulu/sync/rwMutexLog"
"github.com/lifegit/go-gulu/v2/sync/rwMutexLog"
"testing"
)

Expand Down

0 comments on commit 9eddf75

Please sign in to comment.