Skip to content

Commit

Permalink
Merge pull request #16 from lightpanda-io/history-snake-case
Browse files Browse the repository at this point in the history
use snake_case instead of camelCase in history JSON keys
  • Loading branch information
krichprollsch authored Feb 2, 2024
2 parents 707c7eb + 5e41fa5 commit b32dc48
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions bench/bench.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ type InResult struct {

type OutItem struct {
Duration int `json:"duration"`
AllocSize int `json:"allocationSize"`
AllocNb int `json:"alloccation"`
ReallocNb int `json:"reallocation"`
AllocSize int `json:"alloc_size"`
AllocNb int `json:"alloc_nb"`
ReallocNb int `json:"realloc_nb"`
FreeNb int `json:"free"`
}

type OutResult struct {
Hash git.CommitHash `json:"commitHash"`
Time time.Time `json:"dateTime"`
Hash git.CommitHash `json:"commit"`
Time time.Time `json:"datetime"`
Data struct {
WithIsolate OutItem `json:"withIsolate"`
WithoutIsolate OutItem `json:"withoutIsolate"`
WithIsolate OutItem `json:"with_isolate"`
WithoutIsolate OutItem `json:"without_isolate"`
} `json:"data"`
}

Expand Down
4 changes: 2 additions & 2 deletions wpt/wpt.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ type InResult struct {
}

type OutResult struct {
Hash git.CommitHash `json:"commitHash"`
Time time.Time `json:"dateTime"`
Hash git.CommitHash `json:"commit"`
Time time.Time `json:"datetime"`
Data struct {
Pass int `json:"pass"`
Fail int `json:"fail"`
Expand Down

0 comments on commit b32dc48

Please sign in to comment.