From dc84f95fe9ed33926a0b21163b62763fb0ed0506 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 27 Jun 2014 00:25:00 -0500 Subject: [PATCH] Name field WorkID to make golint happy. --- jsoncmd.go | 2 +- jsoncmd_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jsoncmd.go b/jsoncmd.go index 5a9a1321..f5dfb4a0 100644 --- a/jsoncmd.go +++ b/jsoncmd.go @@ -6168,7 +6168,7 @@ func (cmd *StopCmd) UnmarshalJSON(b []byte) error { // a SubmitBlockCmd command. type SubmitBlockOptions struct { // must be provided if server provided a workid with template. - WorkId string `json:"workid,omitempty"` + WorkID string `json:"workid,omitempty"` } // SubmitBlockCmd is a type handling custom marshaling and diff --git a/jsoncmd_test.go b/jsoncmd_test.go index ab4f9c12..1d012c61 100644 --- a/jsoncmd_test.go +++ b/jsoncmd_test.go @@ -1473,12 +1473,12 @@ var jsoncmdtests = []struct { f: func() (Cmd, error) { return NewSubmitBlockCmd(testId, "lotsofhex", - &SubmitBlockOptions{WorkId: "otherstuff"}) + &SubmitBlockOptions{WorkID: "otherstuff"}) }, result: &SubmitBlockCmd{ id: testId, HexBlock: "lotsofhex", - Options: &SubmitBlockOptions{WorkId: "otherstuff"}, + Options: &SubmitBlockOptions{WorkID: "otherstuff"}, }, }, {