Documentation
¶
Overview ¶
Package smaz is an implementation of the smaz library for compressing small strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = NewSmaz(DefaultDict)
Default use the library for the default dictionary
View Source
var (
DefaultDict = []string{}/* 254 elements not displayed */
)
View Source
var ErrDecompression = errors.New("invalid or corrupted compressed data")
ErrDecompression is returned when decompressing invalid smaz-encoded data.
Functions ¶
func Decompress ¶
Decompress decompresses a smaz-compressed byte slice and return a new slice with the decompressed data. err is nil if and only if decompression fails for any reason (e.g., corrupted data).
Types ¶
Click to show internal directories.
Click to hide internal directories.