mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
vendor: update github.com/valyala/quicktemplate from v1.2.0 to v1.3.1
This commit is contained in:
parent
6ebf537153
commit
a398343bb6
5 changed files with 16 additions and 5 deletions
2
go.mod
2
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
|
||||
)
|
||||
|
||||
|
|
4
go.sum
4
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=
|
||||
|
|
2
vendor/github.com/valyala/quicktemplate/README.md
generated
vendored
2
vendor/github.com/valyala/quicktemplate/README.md
generated
vendored
|
@ -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`.
|
||||
|
|
11
vendor/github.com/valyala/quicktemplate/writer.go
generated
vendored
11
vendor/github.com/valyala/quicktemplate/writer.go
generated
vendored
|
@ -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)
|
||||
|
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue