feat: implement copilot mode

This commit is contained in:
2023-10-15 12:08:33 +02:00
parent c2b12f297c
commit 58538cff20
31 changed files with 565 additions and 395 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 {