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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?