Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 602 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 602 Bytes

sfv

Build Status

sfv is a Go package for verifying SFV files.

Installation

$ go get github.com/mpolden/sfv

Example

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)
	}
}