github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/compress/flate/init.go (about)

     1  /* For license and copyright information please see LEGAL file in repository */
     2  
     3  package flate
     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(&Deflate)
    13  	}
    14  }