diff --git a/cmd/init_project.go b/cmd/init_project.go index 9eff693b63a..4ed97a47d56 100644 --- a/cmd/init_project.go +++ b/cmd/init_project.go @@ -172,7 +172,7 @@ func (o *projectOptions) validate() error { } if util.ProjectExist() { - return fmt.Errorf("Failed to initialize project because project is already initialized") + return fmt.Errorf("failed to initialize project because project is already initialized") } return nil @@ -190,16 +190,16 @@ func fetchAndCheckGoVersion() error { cmd := exec.Command("go", "version") out, err := cmd.Output() if err != nil { - return fmt.Errorf("Failed to retrieve 'go version': %v", string(out)) + return fmt.Errorf("failed to retrieve 'go version': %v", string(out)) } split := strings.Split(string(out), " ") if len(split) < 3 { - return fmt.Errorf("Found invalid Go version: %q", string(out)) + return fmt.Errorf("found invalid Go version: %q", string(out)) } goVer := split[2] if err := checkGoVersion(goVer); err != nil { - return fmt.Errorf("Go version '%s' is incompatible because '%s'", goVer, err) + return fmt.Errorf("go version '%s' is incompatible because '%s'", goVer, err) } return nil } diff --git a/pkg/scaffold/api.go b/pkg/scaffold/api.go index 325479b6994..e8dde4ced86 100644 --- a/pkg/scaffold/api.go +++ b/pkg/scaffold/api.go @@ -265,7 +265,7 @@ func (api *API) scaffoldV2() error { func (api *API) validateResourceGroup(r *resource.Resource) error { for _, existingGroup := range api.project.ResourceGroups() { if strings.ToLower(r.Group) != strings.ToLower(existingGroup) { - return fmt.Errorf("Group '%s' is not same as existing group '%s'. Multiple groups are not supported yet.", r.Group, existingGroup) + return fmt.Errorf("group '%s' is not same as existing group '%s'. Multiple groups are not supported yet.", r.Group, existingGroup) } } return nil