From 21d9ff2c39fce81ee01ce3dde6aa75443ca1fd00 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 29 Apr 2021 18:45:20 +0800 Subject: [PATCH] refactor: format new.go (#885) --- cmd/kratos/internal/project/new.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/kratos/internal/project/new.go b/cmd/kratos/internal/project/new.go index d8dd55226..236c8e56b 100644 --- a/cmd/kratos/internal/project/new.go +++ b/cmd/kratos/internal/project/new.go @@ -9,7 +9,6 @@ import ( "github.com/go-kratos/kratos/cmd/kratos/v2/internal/base" ) - // Project is a project template. type Project struct { Name string @@ -21,7 +20,7 @@ func (p *Project) New(ctx context.Context, dir string, layout string) error { if _, err := os.Stat(to); !os.IsNotExist(err) { return fmt.Errorf("%s already exists", p.Name) } - fmt.Printf("Creating service %s, layout repo is %s\n", p.Name,layout) + fmt.Printf("Creating service %s, layout repo is %s\n", p.Name, layout) repo := base.NewRepo(layout) if err := repo.CopyTo(ctx, to, p.Name, []string{".git", ".github"}); err != nil { return err