Standard library / compress/zlib

compress/zlib.HuffmanOnly

Disable Lempel-Ziv matching and use Huffman entropy encoding; output is still valid DEFLATE. This is the zlib package constant. Expected stdout: '-2\n'.

Formal Syntax & Structure

go syntaxgo
const HuffmanOnly = flate.HuffmanOnly

Working Example

Example Snippetgo
package main
import (  "compress/zlib"  "fmt")
func must(e error) {  if e != nil {    panic(e)  }}
func main() { fmt.Println(zlib.HuffmanOnly) }
Go Reference