go-smaz

A pure Go implementation of the smaz compression library for short strings.

  • 所有者: cespare/go-smaz
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

go-smaz

GoDoc

go-smaz is a pure Go implementation of antirez's
smaz, a library for compressing short strings (particularly containing
English words).

Installation

$ go get github.com/cespare/go-smaz

Usage

import (
  "github.com/cespare/go-smaz"
)

func main() {
  s := "Now is the time for all good men to come to the aid of the party."
  compressed := smaz.Compress([]byte(s))           // type is []byte
  decompressed, err := smaz.Decompress(compressed) // type is []byte; string(decompressed) == s
  if err != nil {
    ...
}

Also see the API documentation.

Notes

go-smaz is not a direct port of the C version. It is not guaranteed that the output of smaz.Compress will be
precisely the same as the C library. However, the output should be decompressible by the C library, and the
output of the C library should be decompressible by smaz.Decompress.

Author

Caleb Spare (cespare). smaz was created by Salvatore Sanfilippo
(antirez).

Contributors

License

MIT Licensed.

Other implementations

主要指標

概覽
名稱與所有者cespare/go-smaz
主編程語言Go
編程語言Go (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2012-09-12 10:02:20
推送於2022-09-05 16:39:37
最后一次提交
發布數1
最新版本名稱v1.0.0 (發布於 2021-09-01 00:17:46)
第一版名稱v1.0.0 (發布於 2021-09-01 00:17:46)
用户参与
星數80
關注者數3
派生數18
提交數21
已啟用問題?
問題數6
打開的問題數0
拉請求數1
打開的拉請求數1
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?