Documentation
¶
Overview ¶
Example ¶
data := []byte("zhang how, zhang how, zhang how, zhang how,") compressed := Compress(data) fmt.Printf("performance %.4f\n", float64(len(compressed))/float64(len(data))) de, _ := Decompress(compressed) fmt.Println(string(de))
Output: performance 0.7674 zhang how, zhang how, zhang how, zhang how,
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decompress ¶
Decompress data compressed by huffman algorithm
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.