@@ -47,11 +47,9 @@ func parseDefaultValue(line string, pos int, mapping func(string) string) (strin
47
47
success := false
48
48
replaced := ""
49
49
50
- fmt .Printf ("INCOMING: %v\n " , string (line [pos ]))
51
50
// only skip :, :- and - at the beginning
52
51
for ; pos < len (line ); pos ++ {
53
52
c := line [pos ]
54
- fmt .Printf ("SKIP: %v\n " , string (c ))
55
53
if c == ':' || c == '-' {
56
54
continue
57
55
}
@@ -62,26 +60,19 @@ func parseDefaultValue(line string, pos int, mapping func(string) string) (strin
62
60
switch {
63
61
case c == '$' :
64
62
if line [pos - 1 ] != '\\' {
65
- fmt .Printf ("NESTED: %v pos: %v\n " , string (c ), pos )
66
- replaced , pos , success = parseInterpolationExpression (line , pos + 1 , mapping )
63
+ replaced , pos , success = parseInterpolationExpression (line , pos + 1 , mapping )
67
64
_ , err := buffer .WriteString (replaced )
68
- fmt .Printf ("REPLACED: %v pos: %v\n " , replaced , pos )
69
65
if success == false || err != nil {
70
66
return "" , 0 , false
71
67
}
72
68
}
73
69
case c == '}' :
74
- fmt .Printf ("ENDIT: %v\n " , string (c ))
75
70
return buffer .String (), pos - 1 , true
76
71
default :
77
- fmt .Printf ("APPEND: %v\n " , string (c ))
78
- // err := buffer.WriteByte(c)
79
72
if err := buffer .WriteByte (c ); err != nil {
80
73
return "" , pos , false
81
74
}
82
- fmt .Printf ("APPEND: %v\n " , string (c ))
83
75
}
84
- fmt .Printf ("BUFFER: %v\n " , string (buffer .String ()))
85
76
}
86
77
return "" , 0 , false
87
78
}
@@ -91,7 +82,6 @@ func parseVariableWithBraces(line string, pos int, mapping func(string) string)
91
82
92
83
for ; pos < len (line ); pos ++ {
93
84
c := line [pos ]
94
- fmt .Printf ("val: %v\n " , string (c ))
95
85
96
86
switch {
97
87
case c == '}' :
0 commit comments