Standard library / compress/gzip
compress/gzip.BestSpeed
Select a fast compression level; actual size and runtime depend on the input. This is the gzip package constant. Expected stdout: '1\n'.
Formal Syntax & Structure
go syntaxgo
const BestSpeed = flate.BestSpeedWorking Example
Example Snippetgo
package main
import ( "compress/gzip" "fmt")
func must(e error) { if e != nil { panic(e) }}
func main() { fmt.Println(gzip.BestSpeed) }