github.com/geniusesgroup/libgo@v0.0.0-20220713101832-828057a9d3d4/compress/gzip/init.go (about) 1 /* For license and copyright information please see LEGAL file in repository */ 2 3 package gzip 4 5 import ( 6 "../../protocol" 7 ) 8 9 func init() { 10 // Check due to os can be nil almost in tests and benchmarks build 11 if protocol.OS != nil { 12 protocol.OS.RegisterCompressType(&GZIP) 13 } 14 }