Skip to content

Commit 0b8e185

Browse files
committed
fix: barry quick fix, 2025-09-06 01:54:15
1 parent 7e0f979 commit 0b8e185

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

protoutils/util.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"strings"
1010
"unicode"
1111

12-
pongo2 "github.com/flosch/pongo2/v6"
1312
"github.com/pubgo/funk/assert"
1413
"github.com/pubgo/funk/errors"
1514
options "google.golang.org/genproto/googleapis/api/annotations"
@@ -281,16 +280,6 @@ func trim(s string) string {
281280
return strings.Trim(strings.TrimSpace(s), ".-_/")
282281
}
283282

284-
type Context = pongo2.Context
285-
286-
func Template(tpl string, m pongo2.Context) string {
287-
temp := assert.Must1(pongo2.FromString(tpl))
288-
289-
w := bytes.NewBuffer(nil)
290-
assert.Must(temp.ExecuteWriter(m, w), tpl)
291-
return w.String()
292-
}
293-
294283
func goZeroValue(f *descriptorpb.FieldDescriptorProto) string {
295284
const nilString = "nil"
296285
if *f.Label == descriptorpb.FieldDescriptorProto_LABEL_REPEATED {

0 commit comments

Comments
 (0)