tape: Safely cast when dynamically encoding/decoding

This commit is contained in:
2025-08-29 12:03:39 -04:00
parent 0ea7e222cc
commit 04c352fad6
3 changed files with 20 additions and 4 deletions

View File

@@ -2,7 +2,8 @@ package tape
// Error enumerates common errors in this package.
type Error string; const (
ErrTooLong Error = "data structure too long"
ErrTooLong Error = "data structure too long"
ErrTooLarge Error = "number too large"
)
// Error implements the error interface.