mfer/internal/bork/error.go
sneak 17ad86642a
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
latest
2022-12-08 22:25:30 +04:00

16 lines
276 B
Go

package bork
import (
"errors"
"fmt"
)
var (
ErrMissingMagic = errors.New("missing magic bytes in file")
ErrFileTruncated = errors.New("file/stream is truncated abnormally")
)
func Newf(format string, args ...interface{}) error {
return fmt.Errorf(format, args...)
}