pathmatch.Pattern.String()

master
Charles Iliya Krempeaux 2019-06-24 14:06:00 -07:00
parent 64422ea7ec
commit 9a424db462
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,8 @@ func CompileTo(target *Pattern, uncompiledPattern string) error {
target.init(defaultFieldTagName) target.init(defaultFieldTagName)
target.template = uncompiledPattern
s := uncompiledPattern s := uncompiledPattern
for { for {
index := strings.IndexRune(s, '{') index := strings.IndexRune(s, '{')