Code optimized (#493)
This commit is contained in:
@@ -9,6 +9,8 @@ import (
|
||||
|
||||
var errModuleCheck = errors.New("the work directory must be found in the go mod or the $GOPATH")
|
||||
|
||||
// ProjectContext is a structure for the project,
|
||||
// which contains WorkDir, Name, Path and Dir
|
||||
type ProjectContext struct {
|
||||
WorkDir string
|
||||
// Name is the root name of the project
|
||||
|
||||
@@ -9,6 +9,8 @@ import (
|
||||
"github.com/tal-tech/go-zero/tools/goctl/rpc/execx"
|
||||
)
|
||||
|
||||
// Module contains the relative data of go module,
|
||||
// which is the result of the command go list
|
||||
type Module struct {
|
||||
Path string
|
||||
Main bool
|
||||
|
||||
Reference in New Issue
Block a user