golint
This commit is contained in:
parent
79b637b059
commit
a26b505473
@ -6,6 +6,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// realize hidden dir
|
||||||
var Dir = ".realize/"
|
var Dir = ".realize/"
|
||||||
|
|
||||||
// Settings defines a group of general settings
|
// Settings defines a group of general settings
|
||||||
|
@ -59,6 +59,7 @@ type tool struct {
|
|||||||
name string
|
name string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Cmds go supported
|
||||||
type Cmds struct {
|
type Cmds struct {
|
||||||
Vet bool `yaml:"vet" json:"vet"`
|
Vet bool `yaml:"vet" json:"vet"`
|
||||||
Fmt bool `yaml:"fmt" json:"fmt"`
|
Fmt bool `yaml:"fmt" json:"fmt"`
|
||||||
@ -69,7 +70,7 @@ type Cmds struct {
|
|||||||
Run bool `yaml:"run" json:"run"`
|
Run bool `yaml:"run" json:"run"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Buildmode options
|
// Cmd buildmode options
|
||||||
type Cmd struct {
|
type Cmd struct {
|
||||||
Status bool `yaml:"status" json:"status"`
|
Status bool `yaml:"status" json:"status"`
|
||||||
Args []string `yaml:"args,omitempty" json:"args,omitempty"`
|
Args []string `yaml:"args,omitempty" json:"args,omitempty"`
|
||||||
|
@ -54,7 +54,6 @@ func getEnvPath(env string) string {
|
|||||||
path := filepath.SplitList(os.Getenv(env))
|
path := filepath.SplitList(os.Getenv(env))
|
||||||
if len(path) == 0 {
|
if len(path) == 0 {
|
||||||
return ""
|
return ""
|
||||||
} else {
|
|
||||||
return path[0]
|
|
||||||
}
|
}
|
||||||
|
return path[0]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user