Skip to content

mpolden/sfv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Go library for verifying SFV files

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published