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)