Compare commits

..

No commits in common. "main" and "v0.7.0" have entirely different histories.
main ... v0.7.0

2 changed files with 3 additions and 19 deletions

@ -128,24 +128,8 @@ const CL_INIT_DEFAULT C.uint = C.CL_INIT_DEFAULT
// Wraps the corresponding error message // Wraps the corresponding error message
func Strerr(code ErrorCode) error { func Strerr(code ErrorCode) error {
switch code { err := errors.New(fmt.Sprintf("Error %s", C.int(code)))
case CL_VIRUS: return err
return errors.New("Virus detected")
case CL_EUNPACK:
return errors.New("Unpacking failed")
case CL_EVERIFY:
return errors.New("Verification failed")
case CL_ECVD:
return errors.New("CVD database error")
case CL_EOPEN:
case CL_EACCES:
case CL_EREAD:
case CL_ESTAT:
return errors.New("I/O error while scanning file.")
default:
return errors.New(fmt.Sprintf("Error %d", C.int(code)))
}
return errors.New("Unknown error")
} }
/* db options */ /* db options */

@ -1,2 +1,2 @@
export CGO_LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib -L/usr/local/lib -lclamav" export CGO_LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib"
export CGO_CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include" export CGO_CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"