refactor (#49)

* rebase upstream

* rebase

* trim no need line

* trim no need line

* trim no need line

* refactor gomod module logic

Co-authored-by: kingxt <dream4kingxt@163.com>
This commit is contained in:
kingxt
2020-09-07 18:47:03 +08:00
committed by GitHub
parent 2b815162f6
commit 1d12f20ff6
2 changed files with 14 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ type (
GoMod struct {
Module string
Path string
}
)
@@ -110,6 +111,7 @@ func Prepare(projectDir string, checkGrpcEnv bool) (*Project, error) {
Path: path,
GoMod: GoMod{
Module: module,
Path: goMod,
},
}, nil
}