Standard library / compress/zlib

compress/zlib.DefaultCompression

Select the implementation default; do not rely on a specific numeric internal level. This is the zlib package constant. Expected stdout: '-1\n'.

Formal Syntax & Structure

go syntaxgo
const DefaultCompression = flate.DefaultCompression

Working Example

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