Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 470b9ed

Browse files
committed
README: update instructions to install CLI
- Add instructions for using `go install` to run the binary. - Note that `go get` is only for use as a library.
1 parent fa58105 commit 470b9ed

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
The Snappy compression format in the Go programming language.
22

3-
To download and install from source:
3+
To use as a library:
44
$ go get github.com/golang/snappy
55

6+
To use as a binary:
7+
$ go install github.com/golang/snappy/cmd/snappytool@latest
8+
$ cat decoded | ~/go/bin/snappytool -e > encoded
9+
$ cat encoded | ~/go/bin/snappytool -d > decoded
10+
611
Unless otherwise noted, the Snappy-Go source files are distributed
712
under the BSD-style license found in the LICENSE file.
813

0 commit comments

Comments
 (0)