diff --git a/go.mod b/go.mod index de995270b..0c418eef8 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/valyala/fastrand v1.0.0 github.com/valyala/gozstd v1.6.2 github.com/valyala/histogram v1.0.1 - github.com/valyala/quicktemplate v1.2.0 + github.com/valyala/quicktemplate v1.3.1 golang.org/x/sys v0.0.0-20191010194322-b09406accb47 ) diff --git a/go.sum b/go.sum index e76bc5926..99feb32a3 100644 --- a/go.sum +++ b/go.sum @@ -45,8 +45,8 @@ github.com/valyala/gozstd v1.6.2 h1:MgBfNm0I8IKm51LUTTKfO9vi4BtmoH7kBXeUvgaiZVU= github.com/valyala/gozstd v1.6.2/go.mod h1:y5Ew47GLlP37EkTB+B4s7r6A5rdaeB7ftbl9zoYiIPQ= github.com/valyala/histogram v1.0.1 h1:FzA7n2Tz/wKRMejgu3PV1vw3htAklTjjuoI6z3d4KDg= github.com/valyala/histogram v1.0.1/go.mod h1:lQy0xA4wUz2+IUnf97SivorsJIp8FxsnRd6x25q7Mto= -github.com/valyala/quicktemplate v1.2.0 h1:BaO1nHTkspYzmAjPXj0QiDJxai96tlcZyKcI9dyEGvM= -github.com/valyala/quicktemplate v1.2.0/go.mod h1:EH+4AkTd43SvgIbQHYu59/cJyxDoOVRUAfrukLPuGJ4= +github.com/valyala/quicktemplate v1.3.1 h1:V9Ixd/ONuoT6C1ipx8XR2dNGSDgIVnvT4ezZ38ZWllU= +github.com/valyala/quicktemplate v1.3.1/go.mod h1:EH+4AkTd43SvgIbQHYu59/cJyxDoOVRUAfrukLPuGJ4= github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio= golang.org/x/net v0.0.0-20180911220305-26e67e76b6c3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/sys v0.0.0-20191010194322-b09406accb47 h1:/XfQ9z7ib8eEJX2hdgFTZJ/ntt0swNk5oYBziWeTCvY= diff --git a/vendor/github.com/valyala/quicktemplate/README.md b/vendor/github.com/valyala/quicktemplate/README.md index 3c2a420c7..fb8a5544c 100644 --- a/vendor/github.com/valyala/quicktemplate/README.md +++ b/vendor/github.com/valyala/quicktemplate/README.md @@ -208,7 +208,7 @@ The `{%s x %}` is used for printing HTML-safe strings, while `{%= F() %}` is used for embedding template function calls. Quicktemplate supports also other output tags: - * `{%d num %}` for integers. + * `{%d int %}` and `{%dl int64 %}` for integers. * `{%f float %}` for float64. Floating point precision may be set via `{%f.precision float %}`. For example, `{%f.2 1.2345 %}` outputs `1.23`. diff --git a/vendor/github.com/valyala/quicktemplate/writer.go b/vendor/github.com/valyala/quicktemplate/writer.go index 0a83a43e1..f913cc817 100644 --- a/vendor/github.com/valyala/quicktemplate/writer.go +++ b/vendor/github.com/valyala/quicktemplate/writer.go @@ -114,6 +114,17 @@ func (w *QWriter) D(n int) { } } +// DL writes n to w +func (w *QWriter) DL(n int64) { + bb, ok := w.w.(*ByteBuffer) + if ok { + bb.B = strconv.AppendInt(bb.B, n, 10) + } else { + w.b = strconv.AppendInt(w.b[:0], n, 10) + w.Write(w.b) + } +} + // F writes f to w. func (w *QWriter) F(f float64) { n := int(f) diff --git a/vendor/modules.txt b/vendor/modules.txt index 35217d25f..3ebffec05 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -23,7 +23,7 @@ github.com/valyala/fastrand github.com/valyala/gozstd # github.com/valyala/histogram v1.0.1 github.com/valyala/histogram -# github.com/valyala/quicktemplate v1.2.0 +# github.com/valyala/quicktemplate v1.3.1 github.com/valyala/quicktemplate # golang.org/x/sys v0.0.0-20191010194322-b09406accb47 golang.org/x/sys/unix