mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 17:20:24 +08:00
a92f65580c
* add comment support * add comment support * 1. group support multi level folder 2. remove force flag * bug fix * refactor parser and remove deprecated code * refactor parser and remove deprecated code * refactor parser and remove deprecated code * refactor parser and remove deprecated code * refactor parser and remove deprecated code * refactor parser and remove deprecated code * refactor parser and remove deprecated code * support type def without struct token * support type def without struct token * support type def without struct token * support type def without struct token * support type def without struct token * support type def without struct token * support type def without struct token * optimized * optimized * optimized Co-authored-by: kim <xutao@xiaoheiban.cn>
21 lines
515 B
Go
21 lines
515 B
Go
package parser
|
|
|
|
const (
|
|
infoDirective = "info"
|
|
serviceDirective = "service"
|
|
typeDirective = "type"
|
|
typeStruct = "struct"
|
|
routeSyntax = "route syntax: [get/post/delete] /path(request) returns[(response)]"
|
|
returnsTag = "returns"
|
|
at = '@'
|
|
colon = ':'
|
|
leftParenthesis = '('
|
|
rightParenthesis = ')'
|
|
leftBrace = "{"
|
|
rightBrace = '}'
|
|
multilineBeginTag = '>'
|
|
multilineEndTag = '<'
|
|
semicolon = ';'
|
|
newline = "\n"
|
|
)
|