aboutsummaryrefslogtreecommitdiff
path: root/internal/zlib
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-19 08:00:00 +0800
committerGravatar Runxi Yu2025-11-19 08:00:00 +0800
commit3462ca0e8e2089faab781d514cbbf1a86a0f3f92 (patch)
tree8c8185e6d793fe08f7ed75b20918b6873bbf25cd /internal/zlib
parentREADME: Mention the zlib branch (diff)
signatureNo signature
Import flate
Diffstat (limited to 'internal/zlib')
-rw-r--r--internal/zlib/reader.go3
-rw-r--r--internal/zlib/writer.go3
2 files changed, 4 insertions, 2 deletions
diff --git a/internal/zlib/reader.go b/internal/zlib/reader.go
index 22b2b74b..45d3087c 100644
--- a/internal/zlib/reader.go
+++ b/internal/zlib/reader.go
@@ -34,13 +34,14 @@ package zlib
import (
"bufio"
- "compress/flate"
"encoding/binary"
"errors"
"hash"
"hash/adler32"
"io"
"sync"
+
+ "git.sr.ht/~runxiyu/furgit/internal/flate"
)
const (
diff --git a/internal/zlib/writer.go b/internal/zlib/writer.go
index 93537268..bc468716 100644
--- a/internal/zlib/writer.go
+++ b/internal/zlib/writer.go
@@ -5,12 +5,13 @@
package zlib
import (
- "compress/flate"
"encoding/binary"
"fmt"
"hash"
"hash/adler32"
"io"
+
+ "git.sr.ht/~runxiyu/furgit/internal/flate"
)
// These constants are copied from the [flate] package, so that code that imports