From 65f780cdcff14da4c3214fe9ed597c3f8629c923 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 16 Jan 2019 01:07:38 +0100 Subject: add log2 --- internal/hash/hash.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'internal/hash/hash.go') diff --git a/internal/hash/hash.go b/internal/hash/hash.go index 4a718be..8662817 100644 --- a/internal/hash/hash.go +++ b/internal/hash/hash.go @@ -9,10 +9,14 @@ const ( type Hash struct { file *os.File + hash func([]byte) uint32 } func New(file *os.File) *Hash { - return &Hash{file: file} + return &Hash{ + file: file, + hash: defaultHash, + } } func (h *Hash) Close() error { -- cgit v1.2.3