go-zero/tools/goctl/api/parser/vars.go

21 lines
515 B
Go
Raw Normal View History

2020-07-29 17:11:41 +08:00
package parser
const (
infoDirective = "info"
serviceDirective = "service"
typeDirective = "type"
typeStruct = "struct"
routeSyntax = "route syntax: [get/post/delete] /path(request) returns[(response)]"
returnsTag = "returns"
2020-07-29 17:11:41 +08:00
at = '@'
colon = ':'
leftParenthesis = '('
rightParenthesis = ')'
leftBrace = "{"
rightBrace = '}'
multilineBeginTag = '>'
multilineEndTag = '<'
semicolon = ';'
newline = "\n"
2020-07-29 17:11:41 +08:00
)