chore: goctl format issue (#1531)
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
|||||||
const apiTemplate = `
|
const apiTemplate = `
|
||||||
syntax = "v1"
|
syntax = "v1"
|
||||||
|
|
||||||
info(
|
info (
|
||||||
title: // TODO: add title
|
title: // TODO: add title
|
||||||
desc: // TODO: add description
|
desc: // TODO: add description
|
||||||
author: "{{.gitUser}}"
|
author: "{{.gitUser}}"
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ service A-api {
|
|||||||
func TestFormat(t *testing.T) {
|
func TestFormat(t *testing.T) {
|
||||||
r, err := apiFormat(notFormattedStr)
|
r, err := apiFormat(notFormattedStr)
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
assert.Equal(t, r, formattedStr)
|
assert.Equal(t, formattedStr, r)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user