build: upgrade dependency and build with go 1.21

This commit is contained in:
2023-08-21 23:15:03 +02:00
parent adb38c3820
commit 993cfaa9d4
353 changed files with 47533 additions and 16238 deletions

View File

@ -87,7 +87,7 @@ func (sb *Builder) grow(n int) {
// Unlike strings.Builder, we do not need to copy over the contents
// of the old buffer since our builder provides no API for
// retrieving previously created strings.
sb.buf = make([]byte, 2*(cap(sb.buf)+n))
sb.buf = make([]byte, 0, 2*(cap(sb.buf)+n))
}
func (sb *Builder) last(n int) string {