Skip to content

Commit

Permalink
Bugfix: JSON tags were incorrect (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
scudette authored Nov 10, 2024
1 parent 5c1e59f commit 80bdce4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.19
uses: actions/setup-go@v1
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: '^1.23'
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Test
run: |
Expand Down
2 changes: 1 addition & 1 deletion parser/easy.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type FileInfo struct {
Ctime time.Time `json:"Ctime,omitempty"`
Btime time.Time `json:"Btime,omitempty"` // Birth time.
FNBtime time.Time `json:"FNBtime,omitempty"`
FNMtime time.Time `json:"FNBtime,omitempty"`
FNMtime time.Time `json:"FNMtime,omitempty"`
Name string `json:"Name,omitempty"`
NameType string `json:"NameType,omitempty"`
ExtraNames []string `json:"ExtraNames,omitempty"`
Expand Down
6 changes: 6 additions & 0 deletions parser/fixtures/TestNTFS.golden
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"Atime": "2018-09-24T07:56:35.3135567Z",
"Ctime": "2018-09-24T07:56:35.3135567Z",
"Btime": "2018-09-24T07:55:29.7664719Z",
"FNBtime": "2018-09-24T07:55:29.7664719Z",
"FNMtime": "2018-09-24T07:55:29.7664719Z",
"Name": "Hello world text document.txt",
"NameType": "POSIX",
"Size": 12,
Expand All @@ -19,6 +21,8 @@
"Atime": "2018-09-24T07:56:35.3135567Z",
"Ctime": "2018-09-24T07:56:35.3135567Z",
"Btime": "2018-09-24T07:55:29.7664719Z",
"FNBtime": "2018-09-24T07:55:29.7664719Z",
"FNMtime": "2018-09-24T07:55:29.7664719Z",
"Name": "Hello world text document.txt:goodbye.txt",
"NameType": "POSIX",
"Size": 20,
Expand Down Expand Up @@ -48,6 +52,8 @@
"Atime": "2018-09-24T07:56:35.3135567Z",
"Ctime": "2018-09-24T07:55:29.7664719Z",
"Btime": "2018-09-24T07:56:35.3135567Z",
"FNBtime": "0001-01-01T00:00:00Z",
"FNMtime": "0001-01-01T00:00:00Z",
"Name": "Hello world text document.txt",
"NameType": "POSIX",
"Size": 12,
Expand Down

0 comments on commit 80bdce4

Please sign in to comment.