Skip to content

Commit

Permalink
use extensions project
Browse files Browse the repository at this point in the history
  • Loading branch information
futugyou authored Jul 25, 2024
1 parent 51c56e8 commit 991ba6a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 42 deletions.
6 changes: 4 additions & 2 deletions tour/cmd/dynamodb.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package cmd

import (
"github/go-project/tour/internal/dynamo2struct"
"github/go-project/tour/util"
"log"
"os"
"strings"

"github.com/spf13/cobra"

util "github.com/futugyou/extensions"

"github/go-project/tour/internal/dynamo2struct"
)

var dynamoLongDesc = strings.Join([]string{
Expand Down
6 changes: 4 additions & 2 deletions tour/cmd/mongodb.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package cmd

import (
"github/go-project/tour/internal/mongo2struct"
"github/go-project/tour/util"
"log"
"os"
"strings"

"github.com/spf13/cobra"

util "github.com/futugyou/extensions"

"github/go-project/tour/internal/mongo2struct"
)

var mongoLongDesc = strings.Join([]string{
Expand Down
7 changes: 6 additions & 1 deletion tour/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ require (
github.com/aws/aws-sdk-go-v2/config v1.27.27
github.com/aws/aws-sdk-go-v2/credentials v1.17.27
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.34.4
github.com/futugyou/extensions v0.0.0-00010101000000-000000000000
github.com/go-openapi/loads v0.22.0
github.com/go-openapi/spec v0.21.0
github.com/go-sql-driver/mysql v1.8.1
github.com/spf13/cobra v1.8.1
go.mongodb.org/mongo-driver v1.16.0
golang.org/x/mod v0.19.0
golang.org/x/text v0.16.0
gopkg.in/yaml.v3 v3.0.1
)
Expand All @@ -31,6 +31,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 // indirect
github.com/aws/smithy-go v1.20.3 // indirect
github.com/dlclark/regexp2 v1.11.2 // indirect
github.com/go-openapi/analysis v0.23.0 // indirect
github.com/go-openapi/errors v0.22.0 // indirect
github.com/go-openapi/jsonpointer v0.21.0 // indirect
Expand All @@ -44,6 +45,8 @@ require (
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/swaggest/refl v1.3.0 // indirect
golang.org/x/mod v0.19.0 // indirect
golang.org/x/sys v0.22.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)

Expand All @@ -62,3 +65,5 @@ require (
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/sync v0.7.0 // indirect
)

replace github.com/futugyou/extensions v0.0.0-00010101000000-000000000000 => ../extensions
4 changes: 4 additions & 0 deletions tour/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dlclark/regexp2 v1.11.2 h1:/u628IuisSTwri5/UKloiIsH8+qF2Pu7xEQX+yIKg68=
github.com/dlclark/regexp2 v1.11.2/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
github.com/go-openapi/analysis v0.23.0 h1:aGday7OWupfMs+LbmLZG4k0MYXIANxcuBTYUC03zFCU=
github.com/go-openapi/analysis v0.23.0/go.mod h1:9mz9ZWaSlV8TvjQHLl2mUW2PbZtemkE8yA5v22ohupo=
github.com/go-openapi/errors v0.22.0 h1:c4xY/OLxUBSTiepAg3j/MHuAv5mJhnf53LLMWFB+u/w=
Expand Down Expand Up @@ -144,6 +146,8 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI=
golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
Expand Down
20 changes: 0 additions & 20 deletions tour/util/float.go

This file was deleted.

17 changes: 0 additions & 17 deletions tour/util/mod.go

This file was deleted.

0 comments on commit 991ba6a

Please sign in to comment.