Debian Codegraph @

README.md

raw symbols SCIP
1 <!--
2 SPDX-FileCopyrightText: 2024 Shun Sakai
3
4 SPDX-License-Identifier: CC-BY-4.0
5 -->
6
7 # lzip-go
8
9 [![CI][ci-badge]][ci-url]
10 [![Go Reference][reference-badge]][reference-url]
11 ![Go version][go-version-badge]
12
13 **lzip-go** is an implementation of the [lzip compressed format] written in
14 pure [Go].
15
16 This package supports reading and writing of lzip compressed streams.
17
18 ## Usage
19
20 To install this package:
21
22 ```sh
23 go get -u github.com/sorairolake/lzip-go
24 ```
25
26 ### Documentation
27
28 See the [documentation][reference-url] for more details.
29
30 ## Command-line utility
31
32 This package includes a simple command-line utility for reading and writing of
33 lzip format compressed files.
34
35 ### Installation
36
37 #### From source
38
39 ```sh
40 go install github.com/sorairolake/lzip-go/cmd/glzip@latest
41 ```
42
43 #### From binaries
44
45 The [release page] contains pre-built binaries for Linux, macOS, Windows and
46 others.
47
48 #### How to build
49
50 To build the command-line utility:
51
52 ```sh
53 just build-cmd
54 ```
55
56 To build a man page:
57
58 ```sh
59 just build-man
60 ```
61
62 The man page is generated in `docs/man/man1`. Note that [Asciidoctor] is
63 required when building the man page.
64
65 ### Usage
66
67 Please see [`glzip(1)`].
68
69 ## Minimum Go version
70
71 This package requires the minimum version of Go 1.22.
72
73 ## Source code
74
75 The upstream repository is available at
76 <https://github.com/sorairolake/lzip-go.git>.
77
78 ## Changelog
79
80 Please see [CHANGELOG.adoc].
81
82 ## Contributing
83
84 Please see [CONTRIBUTING.adoc].
85
86 ## Acknowledgment
87
88 The API of this package is based on the [`compress/gzip`] package.
89
90 This package uses the [`github.com/ulikunitz/xz/lzma`] package to encode and
91 decode LZMA streams.
92
93 ## License
94
95 Copyright (C) 2024 Shun Sakai (see [AUTHORS.adoc])
96
97 This package is distributed under the terms of either the _Apache License 2.0_
98 or the _MIT License_.
99
100 This project is compliant with version 3.3 of the [_REUSE Specification_]. See
101 copyright notices of individual files for more details on copyright and
102 licensing information.
103
104 [ci-badge]: https://img.shields.io/github/actions/workflow/status/sorairolake/lzip-go/CI.yaml?branch=develop&style=for-the-badge&logo=github&label=CI
105 [ci-url]: https://github.com/sorairolake/lzip-go/actions?query=branch%3Adevelop+workflow%3ACI++
106 [reference-badge]: https://img.shields.io/badge/Go-Reference-steelblue?style=for-the-badge&logo=go
107 [reference-url]: https://pkg.go.dev/github.com/sorairolake/lzip-go
108 [go-version-badge]: https://img.shields.io/github/go-mod/go-version/sorairolake/lzip-go?style=for-the-badge&logo=go
109 [lzip compressed format]: https://www.nongnu.org/lzip/manual/lzip_manual.html#File-format
110 [Go]: https://go.dev/
111 [release page]: https://github.com/sorairolake/lzip-go/releases
112 [Asciidoctor]: https://asciidoctor.org/
113 [`glzip(1)`]: docs/man/man1/glzip.1.adoc
114 [CHANGELOG.adoc]: CHANGELOG.adoc
115 [CONTRIBUTING.adoc]: CONTRIBUTING.adoc
116 [`compress/gzip`]: https://pkg.go.dev/compress/gzip
117 [`github.com/ulikunitz/xz/lzma`]: https://pkg.go.dev/github.com/ulikunitz/xz/lzma
118 [AUTHORS.adoc]: AUTHORS.adoc
119 [_REUSE Specification_]: https://reuse.software/spec-3.3/