deb-simple/deb/release/release_file.go
Tyler 331e7e0296
Some checks failed
the build failed
Try a different project structure
2018-10-14 04:17:04 -04:00

21 lines
294 B
Go

package release
type File struct {
Name string
Size int64
MD5Sum string
SHA1 string
SHA256 string
}
func (f *File) Hash(key string) string {
if key == "MD5Sum" {
return f.MD5Sum
} else if key == "SHA1" {
return f.SHA1
} else if key == "SHA256" {
return f.SHA256
}
return ""
}