blob: fbdc3c780581b4b35d61392db959373bc6aeacc9 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package objectid
import "hash"
type algorithmDetails struct {
name string
size int
packHashID uint32
sum func([]byte) ObjectID
new func() hash.Hash
emptyTree ObjectID
}
func (algo Algorithm) info() algorithmDetails {
return algorithmTable[algo]
}
|