diff --git a/compile.go b/compile.go index 8e7fca5..c254c8d 100644 --- a/compile.go +++ b/compile.go @@ -67,6 +67,8 @@ func CompileTo(target *Pattern, uncompiledPattern string) error { target.init(defaultFieldTagName) + target.template = uncompiledPattern + s := uncompiledPattern for { index := strings.IndexRune(s, '{')