This repository has been archived by the owner on Jun 25, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #297 from gochigo/update-readme
fixed readme and version bump up
- Loading branch information
Showing
3 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
**NOTICE: Please consider migrating your projects to github.com/markbates/pkger. It has an idiomatic API, minimal dependencies, a stronger test suite (tested directly against the std lib counterparts), transparent tooling, and more.** | ||
**NOTICE: Please consider migrating your projects to | ||
[embed](https://pkg.go.dev/embed) which is native file embedding feature of Go, | ||
or github.com/markbates/pkger. It has an idiomatic API, minimal dependencies, a stronger test suite (tested directly against the std lib counterparts), transparent tooling, and more.** | ||
|
||
https://blog.gobuffalo.io/introducing-pkger-static-file-embedding-in-go-1ce76dc79c65 | ||
|
||
|
@@ -9,20 +11,55 @@ https://blog.gobuffalo.io/introducing-pkger-static-file-embedding-in-go-1ce76dc7 | |
|
||
Packr is a simple solution for bundling static assets inside of Go binaries. Most importantly it does it in a way that is friendly to developers while they are developing. | ||
|
||
At this moment, supported go versions are: | ||
|
||
* 1.16.x | ||
* 1.17.x | ||
|
||
even though it may (or may not) working well with older versions. | ||
|
||
## Intro Video | ||
|
||
To get an idea of the what and why of Packr, please enjoy this short video: [https://vimeo.com/219863271](https://vimeo.com/219863271). | ||
|
||
## Library Installation | ||
|
||
```text | ||
$ go get -u github.com/gobuffalo/packr/v2/... | ||
### Go 1.16 and above | ||
|
||
```console | ||
$ go install github.com/gobuffalo/packr/[email protected] | ||
``` | ||
|
||
or | ||
|
||
```console | ||
$ go install github.com/gobuffalo/packr/v2@latest | ||
``` | ||
|
||
### Go 1.15 and below | ||
|
||
```console | ||
$ go get -u github.com/gobuffalo/packr/... | ||
``` | ||
|
||
## Binary Installation | ||
|
||
```text | ||
$ go get -u github.com/gobuffalo/packr/v2/packr2 | ||
### Go 1.16 and above | ||
|
||
```console | ||
$ go install github.com/gobuffalo/packr/v2/[email protected] | ||
``` | ||
|
||
or | ||
|
||
```console | ||
$ go install github.com/gobuffalo/packr/v2/packr2@latest | ||
``` | ||
|
||
### Go 1.15 and below | ||
|
||
```console | ||
$ go get -u github.com/gobuffalo/packr/packr2 | ||
``` | ||
|
||
## New File Format FAQs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package packr | ||
|
||
// Version of Packr | ||
const Version = "v2.8.1" | ||
const Version = "v2.8.3" |