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