hariprasadraja
10/3/2019 - 3:57 AM

go lzw writer

writes lzw compression into the []byte

var writer io.Writer
var UnCompressedData []byte

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