Skip to content

Commit 7b70e95

Browse files
committed
move module to pitr.ca/fj
1 parent 4e516fc commit 7b70e95

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,20 @@ jobs:
2222
fetch-depth: 0
2323
-
2424
name: Set up Go
25-
uses: actions/setup-go@v2
25+
uses: actions/setup-go@v4
2626
with:
27-
go-version: 1.16
28-
-
29-
name: Cache Go modules
30-
uses: actions/cache@v1
31-
with:
32-
path: ~/go/pkg/mod
33-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
34-
restore-keys: |
35-
${{ runner.os }}-go-
27+
go-version: 1.21
3628
-
3729
name: Tests
3830
run: |
3931
go mod tidy
4032
go test -v ./...
4133
-
4234
name: Run GoReleaser
43-
uses: goreleaser/goreleaser-action@v2
35+
uses: goreleaser/goreleaser-action@v5
4436
if: success() && startsWith(github.ref, 'refs/tags/')
4537
with:
4638
version: latest
47-
args: release --rm-dist
39+
args: release --clean
4840
env:
4941
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,11 @@ builds:
1111
- amd64
1212
- arm
1313
- arm64
14+
goarm:
15+
- 6
16+
- 7
17+
ignore:
18+
- goos: darwin
19+
goarch: 386
20+
- goos: darwin
21+
goarch: arm

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ fj can un-flatten too, which is useful to get a subset of JSON:
3636
Alternatively, if you have Go compiler:
3737

3838
```
39-
❯ go install github.com/pitr/fj@latest # OR
40-
❯ go get -u github.com/pitr/fj # legacy way
39+
❯ go install pitr.ca/fj@latest # OR
40+
❯ go get -u pitr.ca/fj # legacy way
4141
```
4242

4343
## Usage

flatten.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"io"
66

7-
json "github.com/pitr/jsontokenizer"
87
"github.com/valyala/bytebufferpool"
8+
json "pitr.ca/jsontokenizer"
99
)
1010

1111
var (

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
module github.com/pitr/fj
1+
module pitr.ca/fj
22

33
go 1.16
44

55
require (
66
github.com/matryer/is v1.4.0
7-
github.com/pitr/jsontokenizer v0.2.0
87
github.com/valyala/bytebufferpool v1.0.0
8+
pitr.ca/jsontokenizer v0.3.0
99
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
github.com/matryer/is v1.4.0 h1:sosSmIWwkYITGrxZ25ULNDeKiMNzFSr4V/eqBQP0PeE=
22
github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU=
3-
github.com/pitr/jsontokenizer v0.2.0 h1:P0Wtw2aYDOVDmaFjRjOKxMl73R0QxEAWYwli+kd7f/M=
4-
github.com/pitr/jsontokenizer v0.2.0/go.mod h1:KATI4UQwEA2a5MjKoszKlyZjcQZHY2DARFx01kRgUFY=
53
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
64
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
5+
pitr.ca/jsontokenizer v0.3.0 h1:Qr70hk4/wcpFEgu/6aJ+nvYQ6x/xS0WOkC627ceiI/M=
6+
pitr.ca/jsontokenizer v0.3.0/go.mod h1:3DJdA2QNOU6cI0XkH6pRKZ4Oe8G5SDRUQ6PFAwaQ3YY=

0 commit comments

Comments
 (0)