Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mpolden/sfv
Go library for verifying SFV files
https://github.com/mpolden/sfv
checksum go sfv
Last synced: 8 days ago
JSON representation
Go library for verifying SFV files
- Host: GitHub
- URL: https://github.com/mpolden/sfv
- Owner: mpolden
- Created: 2014-08-10T19:55:19.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-01-24T13:27:43.000Z (almost 4 years ago)
- Last Synced: 2024-10-08T18:41:45.534Z (29 days ago)
- Topics: checksum, go, sfv
- Language: Go
- Size: 11.7 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sfv
![Build Status](https://github.com/mpolden/sfv/workflows/ci/badge.svg)
sfv is a [Go](http://golang.org) package for verifying
[SFV files](https://en.wikipedia.org/wiki/Simple_file_verification).## Installation
`$ go get github.com/mpolden/sfv`
## Example
```go
package mainimport (
"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)
}
}
```