getting warmer

This commit is contained in:
2022-12-06 20:42:26 +04:00
parent b0c16462c4
commit 86d724ee35
6 changed files with 146 additions and 19 deletions

13
internal/bork/error.go Normal file
View File

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