Update coders with error return values
Some checks failed
Benchmark BufferPool / RunBenchmarks (push) Failing after 25s
Run Tests / Test (push) Failing after 23s

This commit is contained in:
2024-07-25 16:53:14 +02:00
parent 0eb0f5d773
commit 92c0e83e73
3 changed files with 26 additions and 9 deletions

View File

@@ -3,6 +3,6 @@ package encoding
import "bytes"
type Coder interface {
Encode(s string, buf *bytes.Buffer)
Decode(buf *bytes.Buffer) string
Encode(s string, buf *bytes.Buffer) error
Decode(buf *bytes.Buffer) (string, error)
}