From 2159d112c3cef6578fe246e27faf4dfdf596b56a Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Sun, 22 Dec 2024 15:10:44 +0800 Subject: [PATCH] chore: format the code (#4518) --- tools/goctl/pkg/parser/api/parser/parser.go | 14 +++++++------- tools/goctl/pkg/parser/api/parser/parser_test.go | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/goctl/pkg/parser/api/parser/parser.go b/tools/goctl/pkg/parser/api/parser/parser.go index 9faa0002..d4c267d6 100644 --- a/tools/goctl/pkg/parser/api/parser/parser.go +++ b/tools/goctl/pkg/parser/api/parser/parser.go @@ -13,13 +13,13 @@ import ( ) const ( - idAPI = "api" - groupKeyText = "group" - infoTitleKey = "Title" - infoDescKey = "Desc" - infoVersionKey = "Version" - infoAuthorKey = "Author" - infoEmailKey = "Email" + idAPI = "api" + groupKeyText = "group" + infoTitleKey = "Title" + infoDescKey = "Desc" + infoVersionKey = "Version" + infoAuthorKey = "Author" + infoEmailKey = "Email" ) // Parser is the parser for api file. diff --git a/tools/goctl/pkg/parser/api/parser/parser_test.go b/tools/goctl/pkg/parser/api/parser/parser_test.go index 361903ee..adc7b3ac 100644 --- a/tools/goctl/pkg/parser/api/parser/parser_test.go +++ b/tools/goctl/pkg/parser/api/parser/parser_test.go @@ -305,7 +305,7 @@ func TestParser_Parse_atServerStmt(t *testing.T) { "prefix3:": "v1/v2_", "prefix4:": "a-b-c", "summary:": `"test"`, - "key:": `"bar"`, + "key:": `"bar"`, } p := New("foo.api", atServerTestAPI)