From a9dcc585b28f463d41e5eeb67bf1550e37a4b26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E8=B6=85?= <2325690622@qq.com> Date: Sat, 2 Sep 2023 16:49:37 +0800 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index bca7375..7115a76 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,14 @@ A simple utility to encode a file (or any other data) into a Go byte slice. Having [set up your Go environment](http://golang.org/doc/install), simply run +the command below [if you are using Go under 1.17](https://go.dev/doc/go-get-install-deprecation): go get github.com/cratonica/2goarray +Otherwise: + + go install github.com/cratonica/2goarray + Then use by piping a file into the utility and capturing the output. You must provide a name for the generated slice symbol and package name. For example: $GOPATH/bin/2goarray MyArray mypackage < myimage.png > myimage.go @@ -26,3 +31,4 @@ This will output something like: ## Contributors - [Clint Caywood](https://github.com/cratonica) - [Paul Vollmer](https://github.com/paulvollmer) +- [DevDengChao](https://github.com/DevDengChao)