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) }