Skip to content

Commit

Permalink
Merge pull request #25 from bootun/go_install
Browse files Browse the repository at this point in the history
support go install
  • Loading branch information
GrantZheng authored Jan 17, 2022
2 parents 4a08cdf + 1d65106 commit ad0f0f1
Show file tree
Hide file tree
Showing 19 changed files with 879 additions and 103 deletions.
2 changes: 1 addition & 1 deletion cmd/client.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/kujtimiihoxha/kit/generator"
"github.com/GrantZheng/kit/generator"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down
2 changes: 1 addition & 1 deletion cmd/docker.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/kujtimiihoxha/kit/generator"
"github.com/GrantZheng/kit/generator"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down
4 changes: 2 additions & 2 deletions cmd/g_service.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/kujtimiihoxha/kit/generator"
"github.com/kujtimiihoxha/kit/utils"
"github.com/GrantZheng/kit/generator"
"github.com/GrantZheng/kit/utils"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down
2 changes: 1 addition & 1 deletion cmd/middleware.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/kujtimiihoxha/kit/generator"
"github.com/GrantZheng/kit/generator"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down
2 changes: 1 addition & 1 deletion cmd/service.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/kujtimiihoxha/kit/generator"
"github.com/GrantZheng/kit/generator"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down
6 changes: 3 additions & 3 deletions generator/add_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"github.com/dave/jennifer/jen"
"github.com/emicklei/proto"
"github.com/emicklei/proto-contrib/pkg/protofmt"
"github.com/kujtimiihoxha/kit/fs"
"github.com/kujtimiihoxha/kit/parser"
"github.com/kujtimiihoxha/kit/utils"
"github.com/GrantZheng/kit/fs"
"github.com/GrantZheng/kit/parser"
"github.com/GrantZheng/kit/utils"
"github.com/sirupsen/logrus"
"github.com/spf13/viper"
)
Expand Down
4 changes: 2 additions & 2 deletions generator/add_transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/dave/jennifer/jen"
"github.com/emicklei/proto"
"github.com/kujtimiihoxha/kit/fs"
"github.com/kujtimiihoxha/kit/parser"
"github.com/GrantZheng/kit/fs"
"github.com/GrantZheng/kit/parser"
)

func TestNewGenerateTransport(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions generator/generate_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"strings"

"github.com/dave/jennifer/jen"
"github.com/kujtimiihoxha/kit/fs"
"github.com/kujtimiihoxha/kit/parser"
"github.com/kujtimiihoxha/kit/utils"
"github.com/GrantZheng/kit/fs"
"github.com/GrantZheng/kit/parser"
"github.com/GrantZheng/kit/utils"
"github.com/sirupsen/logrus"
"github.com/spf13/viper"
)
Expand Down
4 changes: 2 additions & 2 deletions generator/generate_docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"strings"

"github.com/kujtimiihoxha/kit/fs"
"github.com/kujtimiihoxha/kit/utils"
"github.com/GrantZheng/kit/fs"
"github.com/GrantZheng/kit/utils"
"github.com/spf13/afero"
"github.com/spf13/viper"
)
Expand Down
6 changes: 3 additions & 3 deletions generator/generate_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"strings"

"github.com/dave/jennifer/jen"
"github.com/kujtimiihoxha/kit/fs"
"github.com/kujtimiihoxha/kit/parser"
"github.com/kujtimiihoxha/kit/utils"
"github.com/GrantZheng/kit/fs"
"github.com/GrantZheng/kit/parser"
"github.com/GrantZheng/kit/utils"
"github.com/sirupsen/logrus"
"github.com/spf13/viper"
)
Expand Down
6 changes: 3 additions & 3 deletions generator/generate_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"strings"

"github.com/dave/jennifer/jen"
"github.com/kujtimiihoxha/kit/fs"
"github.com/kujtimiihoxha/kit/parser"
"github.com/kujtimiihoxha/kit/utils"
"github.com/GrantZheng/kit/fs"
"github.com/GrantZheng/kit/parser"
"github.com/GrantZheng/kit/utils"
"github.com/sirupsen/logrus"
"github.com/spf13/viper"
)
Expand Down
6 changes: 3 additions & 3 deletions generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"go/format"

"github.com/dave/jennifer/jen"
"github.com/kujtimiihoxha/kit/fs"
"github.com/kujtimiihoxha/kit/parser"
"github.com/kujtimiihoxha/kit/utils"
"github.com/GrantZheng/kit/fs"
"github.com/GrantZheng/kit/parser"
"github.com/GrantZheng/kit/utils"
"github.com/sirupsen/logrus"
)

Expand Down
4 changes: 2 additions & 2 deletions generator/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"runtime"

"github.com/kujtimiihoxha/kit/parser"
"github.com/kujtimiihoxha/kit/utils"
"github.com/GrantZheng/kit/parser"
"github.com/GrantZheng/kit/utils"
"github.com/spf13/viper"
)

Expand Down
4 changes: 2 additions & 2 deletions generator/new_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"

"github.com/dave/jennifer/jen"
"github.com/kujtimiihoxha/kit/fs"
"github.com/kujtimiihoxha/kit/utils"
"github.com/GrantZheng/kit/fs"
"github.com/GrantZheng/kit/utils"
"github.com/spf13/viper"
)

Expand Down
50 changes: 35 additions & 15 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,21 +1,41 @@
module github.com/kujtimiihoxha/kit
module github.com/GrantZheng/kit

go 1.12
go 1.17

require (
github.com/BurntSushi/toml v0.3.1 // indirect
github.com/Songmu/prompter v0.0.0-20181014095714-d227c68538bd
github.com/Songmu/prompter v0.5.0
github.com/alioygur/godash v0.0.0-20160919141744-af6b3da41c5a
github.com/dave/jennifer v1.3.0
github.com/emicklei/proto v1.6.10
github.com/emicklei/proto-contrib v0.0.0-20190206213850-73879796f936
github.com/dave/jennifer v1.5.0
github.com/emicklei/proto v1.9.1
github.com/emicklei/proto-contrib v0.9.2
github.com/sirupsen/logrus v1.8.1
github.com/smartystreets/goconvey v1.7.2
github.com/spf13/afero v1.8.0
github.com/spf13/cobra v1.3.0
github.com/spf13/viper v1.10.1
golang.org/x/tools v0.1.8
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/mattn/go-isatty v0.0.7 // indirect
github.com/sirupsen/logrus v1.4.0
github.com/smartystreets/goconvey v1.6.4
github.com/spf13/afero v1.2.2
github.com/spf13/cobra v0.0.3
github.com/spf13/viper v1.3.2
golang.org/x/tools v0.0.0-20190401163957-4fc9f0bfa59a
gopkg.in/yaml.v2 v2.2.2
github.com/jtolds/gls v4.20.0+incompatible // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mitchellh/mapstructure v1.4.3 // indirect
github.com/pelletier/go-toml v1.9.4 // indirect
github.com/smartystreets/assertions v1.2.0 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
golang.org/x/mod v0.5.1 // indirect
golang.org/x/sys v0.0.0-20211210111614-af8b64212486 // indirect
golang.org/x/term v0.0.0-20210317153231-de623e64d2a6 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
gopkg.in/ini.v1 v1.66.2 // indirect
)
Loading

0 comments on commit ad0f0f1

Please sign in to comment.