hariprasadraja
10/3/2019 - 3:57 AM

go lzw writer

[go lzw write]writes lzw compression into the []byte #go #lzw

var writer io.Writer
var UnCompressedData []byte

lzwWriter := lzw.NewWriter(writer, lzw.LSB, 8)
defer func() { _ = lzwWriter.Close() }()
lzwWriter.Write(UnCompressedData)