Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 25, 2022. It is now read-only.
/packrPublic archive

Commitc4f5900

Browse files
authored
Merge pull request#297 from gochigo/update-readme
fixed readme and version bump up
2 parents410d31e +3aab0cf commitc4f5900

File tree

3 files changed

+48
-7
lines changed

3 files changed

+48
-7
lines changed

‎.github/workflows/tests.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ jobs:
1313
uses:actions/checkout@v2
1414
with:
1515
fetch-depth:1
16+
-name:Setup Go ${{ matrix.go-version }}
17+
uses:actions/setup-go@v2
18+
with:
19+
go-version:${{ matrix.go-version }}
1620
-name:Test
1721
run:|
18-
go test -race ./...
22+
go test -race-cover -v./...
1923
go install -v ./packr2

‎README.md‎

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
**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.**
1+
**NOTICE: Please consider migrating your projects to
2+
[embed](https://pkg.go.dev/embed) which is native file embedding feature of Go,
3+
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.**
24

35
https://blog.gobuffalo.io/introducing-pkger-static-file-embedding-in-go-1ce76dc79c65
46

@@ -9,20 +11,55 @@ https://blog.gobuffalo.io/introducing-pkger-static-file-embedding-in-go-1ce76dc7
911

1012
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.
1113

14+
At this moment, supported go versions are:
15+
16+
* 1.16.x
17+
* 1.17.x
18+
19+
even though it may (or may not) working well with older versions.
20+
1221
##Intro Video
1322

1423
To get an idea of the what and why of Packr, please enjoy this short video:[https://vimeo.com/219863271](https://vimeo.com/219863271).
1524

1625
##Library Installation
1726

18-
```text
19-
$ go get -u github.com/gobuffalo/packr/v2/...
27+
###Go 1.16 and above
28+
29+
```console
30+
$go install github.com/gobuffalo/packr/v2@v2.8.3
31+
```
32+
33+
or
34+
35+
```console
36+
$go install github.com/gobuffalo/packr/v2@latest
37+
```
38+
39+
###Go 1.15 and below
40+
41+
```console
42+
$go get -u github.com/gobuffalo/packr/...
2043
```
2144

2245
##Binary Installation
2346

24-
```text
25-
$ go get -u github.com/gobuffalo/packr/v2/packr2
47+
###Go 1.16 and above
48+
49+
```console
50+
$go install github.com/gobuffalo/packr/v2/packr2@v2.8.3
51+
```
52+
53+
or
54+
55+
```console
56+
$go install github.com/gobuffalo/packr/v2/packr2@latest
57+
```
58+
59+
###Go 1.15 and below
60+
61+
```console
62+
$go get -u github.com/gobuffalo/packr/packr2
2663
```
2764

2865
##New File Format FAQs

‎version.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package packr
22

33
// Version of Packr
4-
constVersion="v2.8.1"
4+
constVersion="v2.8.3"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp