update goctl to go 1.16 for io/fs usage (#1571)
* update goctl to go 1.16 for io/fs usage * feat: support pg serial type for auto_increment (#1563) * add correct example for pg's url * 🐞 fix: merge * 🐞 fix: pg default port * ✨ feat: support serial type Co-authored-by: kurimi1 <d0n41df@gmail.com> * chore: format code Co-authored-by: toutou_o <33993460+kurimi1@users.noreply.github.com> Co-authored-by: kurimi1 <d0n41df@gmail.com>
This commit is contained in:
@@ -80,7 +80,7 @@ func ZRPC(c *cli.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
var isGooglePlugin = len(grpcOut) > 0
|
||||
isGooglePlugin := len(grpcOut) > 0
|
||||
// If grpcOut is not empty means that user generates grpc code by
|
||||
// https://google.golang.org/protobuf/cmd/protoc-gen-go and
|
||||
// https://google.golang.org/grpc/cmd/protoc-gen-go-grpc,
|
||||
|
||||
@@ -23,7 +23,7 @@ func Test_GetSourceProto(t *testing.T) {
|
||||
return
|
||||
}
|
||||
|
||||
var testData = []test{
|
||||
testData := []test{
|
||||
{
|
||||
source: []string{"a.proto"},
|
||||
expected: filepath.Join(pwd, "a.proto"),
|
||||
@@ -54,7 +54,7 @@ func Test_GetSourceProto(t *testing.T) {
|
||||
}
|
||||
|
||||
func Test_RemoveGoctlFlag(t *testing.T) {
|
||||
var testData = []test{
|
||||
testData := []test{
|
||||
{
|
||||
source: strings.Fields("protoc foo.proto --go_out=. --go_opt=bar --zrpc_out=. --style go-zero --home=foo"),
|
||||
expected: "protoc foo.proto --go_out=. --go_opt=bar",
|
||||
@@ -87,7 +87,7 @@ func Test_RemoveGoctlFlag(t *testing.T) {
|
||||
}
|
||||
|
||||
func Test_RemovePluginFlag(t *testing.T) {
|
||||
var testData = []test{
|
||||
testData := []test{
|
||||
{
|
||||
source: strings.Fields("plugins=grpc:."),
|
||||
expected: ".",
|
||||
|
||||
Reference in New Issue
Block a user