Skip to content

Commit 67be11d

Browse files
committed
Use camelCase for all new JSON field names
1 parent 67f3d61 commit 67be11d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sizes/output.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,14 @@ func (i *item) MarshalJSON() ([]byte, error) {
193193
value, _ := i.value.ToUint64()
194194

195195
stat := struct {
196-
Description string
197-
Value uint64
198-
Unit string
199-
Prefixes string
200-
ReferenceValue float64
201-
LevelOfConcern float64
202-
ObjectName string `json:",omitempty"`
203-
ObjectDescription string `json:",omitempty"`
196+
Description string `json:"description"`
197+
Value uint64 `json:"value"`
198+
Unit string `json:"unit"`
199+
Prefixes string `json:"prefixes"`
200+
ReferenceValue float64 `json:"referenceValue"`
201+
LevelOfConcern float64 `json:"levelOfConcern"`
202+
ObjectName string `json:"objectName,omitempty"`
203+
ObjectDescription string `json:"objectDescription,omitempty"`
204204
}{
205205
Description: i.description,
206206
Value: value,

0 commit comments

Comments
 (0)