Skip to content

Commit

Permalink
move module to pitr.ca/fj
Browse files Browse the repository at this point in the history
  • Loading branch information
pitr committed Dec 31, 2023
1 parent 4e516fc commit 7b70e95
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,20 @@ jobs:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.16
-
name: Cache Go modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version: 1.21
-
name: Tests
run: |
go mod tidy
go test -v ./...
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
if: success() && startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@ builds:
- amd64
- arm
- arm64
goarm:
- 6
- 7
ignore:
- goos: darwin
goarch: 386
- goos: darwin
goarch: arm
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ fj can un-flatten too, which is useful to get a subset of JSON:
Alternatively, if you have Go compiler:

```
❯ go install github.com/pitr/fj@latest # OR
❯ go get -u github.com/pitr/fj # legacy way
❯ go install pitr.ca/fj@latest # OR
❯ go get -u pitr.ca/fj # legacy way
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion flatten.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"io"

json "github.com/pitr/jsontokenizer"
"github.com/valyala/bytebufferpool"
json "pitr.ca/jsontokenizer"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/pitr/fj
module pitr.ca/fj

go 1.16

require (
github.com/matryer/is v1.4.0
github.com/pitr/jsontokenizer v0.2.0
github.com/valyala/bytebufferpool v1.0.0
pitr.ca/jsontokenizer v0.3.0
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
github.com/matryer/is v1.4.0 h1:sosSmIWwkYITGrxZ25ULNDeKiMNzFSr4V/eqBQP0PeE=
github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU=
github.com/pitr/jsontokenizer v0.2.0 h1:P0Wtw2aYDOVDmaFjRjOKxMl73R0QxEAWYwli+kd7f/M=
github.com/pitr/jsontokenizer v0.2.0/go.mod h1:KATI4UQwEA2a5MjKoszKlyZjcQZHY2DARFx01kRgUFY=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
pitr.ca/jsontokenizer v0.3.0 h1:Qr70hk4/wcpFEgu/6aJ+nvYQ6x/xS0WOkC627ceiI/M=
pitr.ca/jsontokenizer v0.3.0/go.mod h1:3DJdA2QNOU6cI0XkH6pRKZ4Oe8G5SDRUQ6PFAwaQ3YY=

0 comments on commit 7b70e95

Please sign in to comment.