File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 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-
294283func goZeroValue (f * descriptorpb.FieldDescriptorProto ) string {
295284 const nilString = "nil"
296285 if * f .Label == descriptorpb .FieldDescriptorProto_LABEL_REPEATED {
You can’t perform that action at this time.
0 commit comments