feat: add hash_info field to /fs/get (close #5259)

This commit is contained in:
Andy Hsu
2023-09-22 15:20:04 +08:00
parent 2a6ab77295
commit 882112ed1c
2 changed files with 34 additions and 27 deletions

View File

@ -218,3 +218,7 @@ func FromString(str string) HashInfo {
func (hi HashInfo) GetHash(ht *HashType) string {
return hi.h[ht]
}
func (hi HashInfo) Export() map[*HashType]string {
return hi.h
}