vendor: update github.com/valyala/quicktemplate from v1.5.2 to v1.6.0

This commit is contained in:
Aliaksandr Valialkin 2020-07-30 23:39:18 +03:00
parent f0c678c41b
commit 44a86e1be3
5 changed files with 16 additions and 5 deletions

2
go.mod
View file

@ -18,7 +18,7 @@ require (
github.com/valyala/fastrand v1.0.0
github.com/valyala/gozstd v1.7.0
github.com/valyala/histogram v1.1.2
github.com/valyala/quicktemplate v1.5.2
github.com/valyala/quicktemplate v1.6.0
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
golang.org/x/sys v0.0.0-20200728102440-3e129f6d46b1
golang.org/x/tools v0.0.0-20200729041821-df70183b1872 // indirect

4
go.sum
View file

@ -175,8 +175,8 @@ github.com/valyala/histogram v1.0.1 h1:FzA7n2Tz/wKRMejgu3PV1vw3htAklTjjuoI6z3d4K
github.com/valyala/histogram v1.0.1/go.mod h1:lQy0xA4wUz2+IUnf97SivorsJIp8FxsnRd6x25q7Mto=
github.com/valyala/histogram v1.1.2 h1:vOk5VrGjMBIoPR5k6wA8vBaC8toeJ8XO0yfRjFEc1h8=
github.com/valyala/histogram v1.1.2/go.mod h1:CZAr6gK9dbD7hYx2s8WSPh0p5x5wETjC+2b3PJVtEdg=
github.com/valyala/quicktemplate v1.5.2 h1:DEMJ2olL+6C89OmCcmcChI53k8kHbfSCFfsz1Uc0/n4=
github.com/valyala/quicktemplate v1.5.2/go.mod h1:v7yYWpBEiutDyNfVaph6oC/yKwejzVyTX/2cwwHxyok=
github.com/valyala/quicktemplate v1.6.0 h1:9fKw4ebNjg3jzbfLSTu6i0tgqhpS80h2uN6brwbweKg=
github.com/valyala/quicktemplate v1.6.0/go.mod h1:v7yYWpBEiutDyNfVaph6oC/yKwejzVyTX/2cwwHxyok=
github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=

View file

@ -218,7 +218,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 int %}` and `{%dl int64 %}` for integers.
* `{%d int %}` and `{%dl int64 %}` `{%dul uint64 %}` 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`.

View file

@ -125,6 +125,17 @@ func (w *QWriter) DL(n int64) {
}
}
// DUL writes n to w
func (w *QWriter) DUL(n uint64) {
bb, ok := w.w.(*ByteBuffer)
if ok {
bb.B = strconv.AppendUint(bb.B, n, 10)
} else {
w.b = strconv.AppendUint(w.b[:0], n, 10)
w.Write(w.b)
}
}
// F writes f to w.
func (w *QWriter) F(f float64) {
n := int(f)

2
vendor/modules.txt vendored
View file

@ -108,7 +108,7 @@ github.com/valyala/fastrand
github.com/valyala/gozstd
# github.com/valyala/histogram v1.1.2
github.com/valyala/histogram
# github.com/valyala/quicktemplate v1.5.2
# github.com/valyala/quicktemplate v1.6.0
github.com/valyala/quicktemplate
# go.opencensus.io v0.22.4
go.opencensus.io