aboutsummaryrefslogtreecommitdiff
path: root/compress.go
diff options
context:
space:
mode:
authorGravatar Aoang <aoang@x2oe.com> 2022-08-14 17:31:57 +0800
committerGravatar GitHub <noreply@github.com> 2022-08-14 11:31:57 +0200
commitea6052464e7221956dedf9b9a523f8f9892c3d3b (patch)
tree089ef1b083c7d9edc7d54bc2485b1a564a2cc368 /compress.go
parentImprove Client timeout (#1346) (diff)
downloadfasthttp-ea6052464e7221956dedf9b9a523f8f9892c3d3b.tar.gz
fasthttp-ea6052464e7221956dedf9b9a523f8f9892c3d3b.tar.bz2
fasthttp-ea6052464e7221956dedf9b9a523f8f9892c3d3b.zip
Add Go 1.19 Support (#1355)v1.39.0
* Update Go Version to Go1.19.x And add cache * Fix CI Line endings * Update test CI Go Version to Go1.19.x And add cache * Update Gosec Security Scanner CI to securego/gosec@v2.12.0 * Format comment Go 1.19 adds support for links, lists, and clearer headings in doc comments. As part of this change, gofmt now reformats doc comments to make their rendered meaning clearer. See “Go Doc Comments” for syntax details and descriptions of common mistakes now highlighted by gofmt. As another part of this change, the new package go/doc/comment provides parsing and reformatting of doc comments as well as support for rendering them to HTML, Markdown, and text. ref: https://tip.golang.org/doc/go1.19 ref: https://tip.golang.org/doc/comment * Fix doc structure
Diffstat (limited to 'compress.go')
-rw-r--r--compress.go40
1 files changed, 20 insertions, 20 deletions
diff --git a/compress.go b/compress.go
index 803d7cc..49fbf3c 100644
--- a/compress.go
+++ b/compress.go
@@ -127,11 +127,11 @@ var (
//
// Supported compression levels are:
//
-// * CompressNoCompression
-// * CompressBestSpeed
-// * CompressBestCompression
-// * CompressDefaultCompression
-// * CompressHuffmanOnly
+// - CompressNoCompression
+// - CompressBestSpeed
+// - CompressBestCompression
+// - CompressDefaultCompression
+// - CompressHuffmanOnly
func AppendGzipBytesLevel(dst, src []byte, level int) []byte {
w := &byteSliceWriter{dst}
WriteGzipLevel(w, src, level) //nolint:errcheck
@@ -143,11 +143,11 @@ func AppendGzipBytesLevel(dst, src []byte, level int) []byte {
//
// Supported compression levels are:
//
-// * CompressNoCompression
-// * CompressBestSpeed
-// * CompressBestCompression
-// * CompressDefaultCompression
-// * CompressHuffmanOnly
+// - CompressNoCompression
+// - CompressBestSpeed
+// - CompressBestCompression
+// - CompressDefaultCompression
+// - CompressHuffmanOnly
func WriteGzipLevel(w io.Writer, p []byte, level int) (int, error) {
switch w.(type) {
case *byteSliceWriter,
@@ -223,11 +223,11 @@ func AppendGunzipBytes(dst, src []byte) ([]byte, error) {
//
// Supported compression levels are:
//
-// * CompressNoCompression
-// * CompressBestSpeed
-// * CompressBestCompression
-// * CompressDefaultCompression
-// * CompressHuffmanOnly
+// - CompressNoCompression
+// - CompressBestSpeed
+// - CompressBestCompression
+// - CompressDefaultCompression
+// - CompressHuffmanOnly
func AppendDeflateBytesLevel(dst, src []byte, level int) []byte {
w := &byteSliceWriter{dst}
WriteDeflateLevel(w, src, level) //nolint:errcheck
@@ -239,11 +239,11 @@ func AppendDeflateBytesLevel(dst, src []byte, level int) []byte {
//
// Supported compression levels are:
//
-// * CompressNoCompression
-// * CompressBestSpeed
-// * CompressBestCompression
-// * CompressDefaultCompression
-// * CompressHuffmanOnly
+// - CompressNoCompression
+// - CompressBestSpeed
+// - CompressBestCompression
+// - CompressDefaultCompression
+// - CompressHuffmanOnly
func WriteDeflateLevel(w io.Writer, p []byte, level int) (int, error) {
switch w.(type) {
case *byteSliceWriter,