Skip to content

Commit

Permalink
feat:upgrade mao-gutils & mao-glog & mao-gerrors
Browse files Browse the repository at this point in the history
  • Loading branch information
mao888 committed Jan 23, 2024
1 parent 7605561 commit 905bd98
Show file tree
Hide file tree
Showing 42 changed files with 66 additions and 194 deletions.
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
module github.com/mao888/golang-guide

go 1.18
go 1.19

require (
github.com/qiniu/qmgo v1.1.4
go.mongodb.org/mongo-driver v1.11.1
gorm.io/driver/mysql v1.4.5
gorm.io/gorm v1.25.3
github.com/mao888/mao-gutils v1.3.0
github.com/mao888/mao-gerrors v1.1.0
github.com/mao888/mao-glog v1.1.0
)

require (
Expand Down Expand Up @@ -47,9 +50,6 @@ require (
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.13.6 // indirect
github.com/leodido/go-urn v1.2.1 // indirect
github.com/mao888/go-errors v1.0.0 // indirect
github.com/mao888/go-log v1.0.7
github.com/mao888/go-utils v1.1.6
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
Expand Down
140 changes: 4 additions & 136 deletions go.sum

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package linkedlist

import (
"fmt"
"github.com/mao888/go-utils/constants"
"github.com/mao888/mao-gutils/constants"
"testing"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sequence_list
import (
"fmt"

"github.com/mao888/go-utils/constants"
"github.com/mao888/mao-gutils/constants"
)

// 数据结构之线性表--顺序表
Expand Down
4 changes: 2 additions & 2 deletions golang/go-study/exercise/Demo/go-zap/go-log.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"context"
glog "github.com/mao888/go-log"
"github.com/mao888/go-utils/constants"
glog "github.com/mao888/mao-glog"
"github.com/mao888/mao-gutils/constants"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion golang/go-study/exercise/Go/Time/test2.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/mao888/go-utils/constants"
"github.com/mao888/mao-gutils/constants"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion golang/go-study/exercise/Go/interface/类型断言.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
gutil "github.com/mao888/go-utils/interfaces"
gutil "github.com/mao888/mao-gutils/interfaces"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion golang/go-study/exercise/Go/test/expand.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
gutil "github.com/mao888/go-utils/os"
gutil "github.com/mao888/mao-gutils/os"
)

func main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
/**
@author:Hasee
@data:2022/11/25
@note:
**/
/*
*
@author:Hasee
@data:2022/11/25
@note:
*
*/
package main

import (
"fmt"
"github.com/mao888/go-utils/slice"
"github.com/mao888/mao-gutils/slice"
)

func main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package ad_conf_centre
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/golang-guide/project/data-sync/mongo-to-mysql/ad_conf_centre/bean"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package ad_conf_centre
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/golang-guide/project/data-sync/mongo-to-mysql/ad_conf_centre/bean"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package ad_conf_centre
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/golang-guide/project/data-sync/mongo-to-mysql/ad_conf_centre/bean"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package ad_conf_centre
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/golang-guide/project/data-sync/mongo-to-mysql/ad_conf_centre/bean"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package ad_conf_centre
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/golang-guide/project/data-sync/mongo-to-mysql/ad_conf_centre/bean"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package ad_conf_centre
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/golang-guide/project/data-sync/mongo-to-mysql/ad_conf_centre/bean"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package ad_conf_centre
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/golang-guide/project/data-sync/mongo-to-mysql/ad_conf_centre/bean"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package ad_material
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/golang-guide/project/data-sync/mongo-to-mysql/ad_material/bean"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
"reflect"
"strconv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package ad_material
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/golang-guide/project/data-sync/mongo-to-mysql/ad_material/bean"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
"strings"
"sync"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package ad_material
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/golang-guide/project/data-sync/mongo-to-mysql/ad_material/bean"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
"sync"
)
Expand Down
2 changes: 1 addition & 1 deletion project/data-sync/mongo-to-mysql/art_asset/art_asset_1.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package art_asset
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/golang-guide/project/data-sync/mongo-to-mysql/art_asset/bean"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
2 changes: 1 addition & 1 deletion project/data-sync/mongo-to-mysql/art_asset/art_asset_2.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package art_asset
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/golang-guide/project/data-sync/mongo-to-mysql/art_asset/bean"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package art_asset
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/golang-guide/project/data-sync/mongo-to-mysql/art_asset/bean"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package art_asset
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/golang-guide/project/data-sync/mongo-to-mysql/art_asset/bean"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package art_asset
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/golang-guide/project/data-sync/mongo-to-mysql/art_asset/bean"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
"strconv"
"strings"
Expand Down
4 changes: 2 additions & 2 deletions project/data-sync/mongo-to-mysql/art_need/art_attachments.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package art_need
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
)

Expand All @@ -27,7 +27,7 @@ func RunArtAttachment() {
for _, attachment := range mArtAttachments {

//fmt.Println(attachment.AssetLanguage)

// TaskID
// 根据 需求id查询子任务id
artTask := make([]*ArtTask, 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package art_need
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package art_need
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
"time"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package art_need
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package art_need
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
"strings"
"time"
Expand Down
2 changes: 1 addition & 1 deletion project/data-sync/mongo-to-mysql/art_need/art_tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package art_need
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
2 changes: 1 addition & 1 deletion project/data-sync/mongo-to-mysql/art_need/supply_desc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package art_need
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/mao-gutils/constants"
"go.mongodb.org/mongo-driver/bson"
"sort"
)
Expand Down
4 changes: 2 additions & 2 deletions project/data-sync/mongo-to-mysql/bi_data/bi_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package bi_data
import (
"context"
"fmt"
gerrors "github.com/mao888/go-errors"
gutil "github.com/mao888/go-utils/json"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
gerrors "github.com/mao888/mao-gerrors"
gutil "github.com/mao888/mao-gutils/json"
"go.mongodb.org/mongo-driver/bson"
"time"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package remote_config
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
gutil "github.com/mao888/go-utils/json"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/mao-gutils/constants"
gutil "github.com/mao888/mao-gutils/json"
"go.mongodb.org/mongo-driver/bson"
"time"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package sdk_release
import (
"context"
"fmt"
"github.com/mao888/go-utils/constants"
"github.com/mao888/go-utils/json"
"github.com/mao888/go-utils/version"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/mao-gutils/constants"
gutil "github.com/mao888/mao-gutils/json"
"github.com/mao888/mao-gutils/version"
"go.mongodb.org/mongo-driver/bson"
"time"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package sdk_release

import (
"fmt"
"github.com/mao888/go-utils/version"
db2 "github.com/mao888/golang-guide/project/data-sync/db"
"github.com/mao888/mao-gutils/version"
)

func VersionNumberToOrdinal() {
Expand Down
Loading

0 comments on commit 905bd98

Please sign in to comment.