Standard library / compress/zlib

compress/zlib.BestCompression

Select the highest standard compression effort; not a promise of optimal size. This is the zlib package constant. Expected stdout: '9\n'.

Formal Syntax & Structure

go syntaxgo
const BestCompression = flate.BestCompression

Working Example

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