Standard library / compress/gzip
compress/gzip.DefaultCompression
Select the implementation default; do not rely on a specific numeric internal level. This is the gzip package constant. Expected stdout: '-1\n'.
Formal Syntax & Structure
go syntaxgo
const DefaultCompression = flate.DefaultCompressionWorking Example
Example Snippetgo
package main
import ( "compress/gzip" "fmt")
func must(e error) { if e != nil { panic(e) }}
func main() { fmt.Println(gzip.DefaultCompression) }