Standard library / compress/gzip
compress/gzip.HuffmanOnly
Disable Lempel-Ziv matching and use Huffman entropy encoding; output is still valid DEFLATE. This is the gzip package constant. Expected stdout: '-2\n'.
Formal Syntax & Structure
go syntaxgo
const HuffmanOnly = flate.HuffmanOnlyWorking Example
Example Snippetgo
package main
import ( "compress/gzip" "fmt")
func must(e error) { if e != nil { panic(e) }}
func main() { fmt.Println(gzip.HuffmanOnly) }