Skip to content

Commit d0564de

Browse files
committed
Initial implementation
This adds the initial implementation of "github.com/go-json-experiment/jsonsplit" that dynamically delegates marshal/unmarshal calls to either v1, v2, or both.
1 parent 8edf96f commit d0564de

File tree

6 files changed

+1888
-0
lines changed

6 files changed

+1888
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Test
2+
on: [push, pull_request]
3+
jobs:
4+
test-all:
5+
strategy:
6+
matrix:
7+
go-version: [1.24.x]
8+
os: [ubuntu-latest, macos-latest, windows-latest]
9+
runs-on: ${{ matrix.os }}
10+
steps:
11+
- name: Install Go
12+
uses: actions/setup-go@v5
13+
with:
14+
go-version: ${{ matrix.go-version }}
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
- name: Test
18+
run: go test ./...
19+
- name: Format
20+
if: matrix.os == 'ubuntu-latest'
21+
run: diff -u <(echo -n) <(gofmt -s -d .)

go.mod

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module github.com/go-json-experiment/jsonsplit
2+
3+
go 1.24.2
4+
5+
require (
6+
github.com/go-json-experiment/json v0.0.0-20250626171732-1a886bd29d1b
7+
github.com/google/go-cmp v0.7.0
8+
)

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
github.com/go-json-experiment/json v0.0.0-20250626171732-1a886bd29d1b h1:ooF9/NzXkXL3OOLRwtPuQT/D7Kx2S5w/Kl1GnMF9h2s=
2+
github.com/go-json-experiment/json v0.0.0-20250626171732-1a886bd29d1b/go.mod h1:TiCD2a1pcmjd7YnhGH0f/zKNcCD06B029pHhzV23c2M=
3+
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
4+
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=

0 commit comments

Comments
 (0)