From 84ddc660c42570d1a4fdb08db89ba49a7ff575cd Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Sun, 13 Feb 2022 13:17:19 +0800 Subject: [PATCH] chore: goctl format issue (#1531) --- tools/goctl/api/apigen/gen.go | 2 +- tools/goctl/api/format/format_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/goctl/api/apigen/gen.go b/tools/goctl/api/apigen/gen.go index 32fc27d7..50cb3d78 100644 --- a/tools/goctl/api/apigen/gen.go +++ b/tools/goctl/api/apigen/gen.go @@ -16,7 +16,7 @@ import ( const apiTemplate = ` syntax = "v1" -info( +info ( title: // TODO: add title desc: // TODO: add description author: "{{.gitUser}}" diff --git a/tools/goctl/api/format/format_test.go b/tools/goctl/api/format/format_test.go index 9b8d989a..b3d2c64c 100644 --- a/tools/goctl/api/format/format_test.go +++ b/tools/goctl/api/format/format_test.go @@ -39,5 +39,5 @@ service A-api { func TestFormat(t *testing.T) { r, err := apiFormat(notFormattedStr) assert.Nil(t, err) - assert.Equal(t, r, formattedStr) + assert.Equal(t, formattedStr, r) }