Standard library / compress/gzip
compress/gzip.BestCompression
Select the highest standard compression effort; not a promise of optimal size. This is the gzip package constant. Expected stdout: '9\n'.
Formal Syntax & Structure
go syntaxgo
const BestCompression = flate.BestCompressionWorking Example
Example Snippetgo
package main
import ( "compress/gzip" "fmt")
func must(e error) { if e != nil { panic(e) }}
func main() { fmt.Println(gzip.BestCompression) }