feat: change project name.

This commit is contained in:
tx7do
2023-10-26 19:51:23 +08:00
parent 60c0477999
commit 149ded5d4e
14 changed files with 23 additions and 23 deletions

View File

@@ -10,7 +10,7 @@ import (
"github.com/mattn/go-sqlite3"
_ "github.com/mattn/go-sqlite3"
"github.com/tx7do/kratos-utils/bank_card/assets"
"github.com/tx7do/go-utils/bank_card/assets"
)
type Database struct {

View File

@@ -1,4 +1,4 @@
module github.com/tx7do/kratos-utils/bank_card
module github.com/tx7do/go-utils/bank_card
go 1.20
@@ -13,4 +13,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)
replace github.com/tx7do/kratos-utils => ../
replace github.com/tx7do/go-utils => ../

View File

@@ -1,4 +1,4 @@
module github.com/tx7do/kratos-utils/entgo
module github.com/tx7do/go-utils/entgo
go 1.20
@@ -8,7 +8,7 @@ require (
github.com/go-kratos/kratos/v2 v2.7.1
github.com/google/uuid v1.3.1
github.com/stretchr/testify v1.8.4
github.com/tx7do/kratos-utils v1.0.0
github.com/tx7do/go-utils v1.0.0
)
require (
@@ -35,4 +35,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)
replace github.com/tx7do/kratos-utils => ../
replace github.com/tx7do/go-utils => ../

View File

@@ -7,7 +7,7 @@ import (
"entgo.io/ent/dialect/sql"
"github.com/go-kratos/kratos/v2/encoding"
"github.com/tx7do/kratos-utils/stringcase"
"github.com/tx7do/go-utils/stringcase"
)
const (

View File

@@ -3,7 +3,7 @@ package entgo
import (
"entgo.io/ent/dialect/sql"
paging "github.com/tx7do/kratos-utils/pagination"
paging "github.com/tx7do/go-utils/pagination"
)
func BuildPaginationSelector(page, pageSize int32, noPaging bool) func(*sql.Selector) {

View File

@@ -7,8 +7,8 @@ import (
"github.com/go-kratos/kratos/v2/log"
"github.com/oschwald/geoip2-golang"
"github.com/tx7do/kratos-utils/geoip"
"github.com/tx7do/kratos-utils/geoip/geolite/assets"
"github.com/tx7do/go-utils/geoip"
"github.com/tx7do/go-utils/geoip/geolite/assets"
)
const defaultOutputLanguage = "zh-CN"

View File

@@ -1,4 +1,4 @@
module github.com/tx7do/kratos-utils/geoip
module github.com/tx7do/go-utils/geoip
go 1.20
@@ -18,4 +18,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)
replace github.com/tx7do/kratos-utils => ../
replace github.com/tx7do/go-utils => ../

View File

@@ -3,12 +3,12 @@ package qqwry
import (
"encoding/binary"
"errors"
"github.com/tx7do/kratos-utils/geoip"
"github.com/tx7do/go-utils/geoip"
"net"
"strings"
"sync"
"github.com/tx7do/kratos-utils/geoip/qqwry/assets"
"github.com/tx7do/go-utils/geoip/qqwry/assets"
)
type Client struct {

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/tx7do/kratos-utils
module github.com/tx7do/go-utils
go 1.20

View File

@@ -6,7 +6,7 @@ import (
"sync/atomic"
"time"
"github.com/tx7do/kratos-utils/trans"
"github.com/tx7do/go-utils/trans"
)
type idCounter uint32

View File

@@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/tx7do/kratos-utils/trans"
"github.com/tx7do/go-utils/trans"
)
func TestGenerateOrderIdWithRandom(t *testing.T) {

View File

@@ -1,6 +1,6 @@
git tag v1.0.0
git tag bank_card/v1.0.0
git tag entgo/v1.0.2
git tag geoip/v1.0.0
git tag v1.1.0
git tag bank_card/v1.1.0
git tag entgo/v1.1.0
git tag geoip/v1.1.0
git push origin --tags

View File

@@ -3,7 +3,7 @@ package util
import (
"time"
"github.com/tx7do/kratos-utils/trans"
"github.com/tx7do/go-utils/trans"
)
var DefaultTimeLocation *time.Location

View File

@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/tx7do/kratos-utils/trans"
"github.com/tx7do/go-utils/trans"
)
func TestUnixMilliToStringPtr(t *testing.T) {