коммит произвёл
GitHub
родитель
a3cf490a4d
Коммит
03a55367d9
10
vendor/go.uber.org/zap/buffer/buffer.go
сгенерированный
поставляемый
10
vendor/go.uber.org/zap/buffer/buffer.go
сгенерированный
поставляемый
@@ -23,7 +23,10 @@
|
||||
// package's zero-allocation formatters.
|
||||
package buffer // import "go.uber.org/zap/buffer"
|
||||
|
||||
import "strconv"
|
||||
import (
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
||||
|
||||
const _size = 1024 // by default, create 1 KiB buffers
|
||||
|
||||
@@ -49,6 +52,11 @@ func (b *Buffer) AppendInt(i int64) {
|
||||
b.bs = strconv.AppendInt(b.bs, i, 10)
|
||||
}
|
||||
|
||||
// AppendTime appends the time formatted using the specified layout.
|
||||
func (b *Buffer) AppendTime(t time.Time, layout string) {
|
||||
b.bs = t.AppendFormat(b.bs, layout)
|
||||
}
|
||||
|
||||
// AppendUint appends an unsigned integer to the underlying buffer (assuming
|
||||
// base 10).
|
||||
func (b *Buffer) AppendUint(i uint64) {
|
||||
|
||||
Ссылка в новой задаче
Block a user