github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/protocol/minify.go (about)

     1  /* For license and copyright information please see LEGAL file in repository */
     2  
     3  package protocol
     4  
     5  // Minify replace given data with minify of them if possible.
     6  type Minifier interface {
     7  	Minify(data Codec) (err Error)
     8  	MinifyBytes(data []byte) (minified []byte, err Error)
     9  }