12 lines
238 B
Go
12 lines
238 B
Go
package tape
|
|
|
|
// Error enumerates common errors in this package.
|
|
type Error string; const (
|
|
ErrTooLong Error = "data structure too long"
|
|
)
|
|
|
|
// Error implements the error interface.
|
|
func (err Error) Error() string {
|
|
return string(err)
|
|
}
|