sfv is a Go package for verifying SFV files.
$ go get github.com/mpolden/sfv
package main
import (
"github.com/mpolden/sfv"
"log"
)
func main() {
sfv, err := sfv.Read("/path/to/file.sfv")
if err != nil {
log.Fatal(err)
}
ok, err := sfv.Verify()
if err != nil {
log.Fatal(err)
}
if ok {
log.Print("All files are OK!")
}
for _, c := range sfv.Checksums {
log.Printf("%+v", c)
}
}