Documentation
¶
Index ¶
- Variables
- func File(file string, method ...string) (hash string, err error)
- func FileVerify(file, hash string, method ...string) (verify bool, err error)
- func MustString(str string, method ...string) string
- func Reader(reader io.Reader, method ...string) (hash string, err error)
- func String(str string, method ...string) (hash string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSuchFile = errors.New("no such file")
ErrNoSuchFile ...
Functions ¶
func FileVerify ¶
FileVerify 哈希校验一个文件,以 hex 的方式校验,method 支持:md5,sha1,sha256(默认),sha512
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.