You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dolf Schimmel (Freeaqingme) 4ca7e7b826 Allow to abort scanning a stream prematurely 5 years ago
examples Initial 6 years ago
.gitignore Initial commit 6 years ago
.travis.yml added travis 6 years ago
LICENSE Initial commit 6 years ago
README.md Update README.md 6 years ago
clamd.go Allow to abort scanning a stream prematurely 5 years ago
conn.go Improve error handling on parse error 5 years ago

README.md

go-clamd

Interface to clamd (clamav daemon). You can use go-clamd to implement virus detection capabilities to your application.

GoDoc Build Status

Examples

c := clamd.NewClamd("/tmp/clamd.socket")

reader := bytes.NewReader(clamd.EICAR)
response, err := c.ScanStream(reader)

for s := range response {
    fmt.Printf("%v %v\n", s, err)
}

Contributions

Contributions are welcome.

Creators

Remco Verhoef

Code and documentation copyright 2011-2014 Remco Verhoef. Code released under the MIT license.