optimize route parse (#70)

* rebase upstream

* rebase

* trim no need line

* trim no need line

* trim no need line

* update doc

* remove update

* optimized route parser

Co-authored-by: kingxt <dream4kingxt@163.com>
This commit is contained in:
kingxt
2020-09-14 11:44:53 +08:00
committed by GitHub
parent 2896ef1a49
commit ee45b0a459
2 changed files with 44 additions and 21 deletions

View File

@@ -5,6 +5,8 @@ const (
serviceDirective = "service"
typeDirective = "type"
typeStruct = "struct"
routeSyntax = "route syntax: [get/post/delete] /path(request) returns[(response)]"
returnsTag = "returns"
at = '@'
colon = ':'
leftParenthesis = '('
@@ -13,4 +15,5 @@ const (
rightBrace = '}'
multilineBeginTag = '>'
multilineEndTag = '<'
semicolon = ';'
)