You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/01/21 23:35:15 UTC

[2/2] incubator-mynewt-newt git commit: Go formatting.

Go formatting.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/831c8575
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/831c8575
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/831c8575

Branch: refs/heads/master
Commit: 831c85757bdd864485877ddcf6b9092599922b94
Parents: a4d2359
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Jan 21 14:34:54 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Jan 21 14:34:54 2016 -0800

----------------------------------------------------------------------
 newtmgr/protocol/imageupload.go | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/831c8575/newtmgr/protocol/imageupload.go
----------------------------------------------------------------------
diff --git a/newtmgr/protocol/imageupload.go b/newtmgr/protocol/imageupload.go
index 6158d19..a3f87f4 100644
--- a/newtmgr/protocol/imageupload.go
+++ b/newtmgr/protocol/imageupload.go
@@ -23,8 +23,8 @@ import (
 )
 
 type ImageUpload struct {
-	Offset  uint32	`json:"off"`
-	Data []byte
+	Offset uint32 `json:"off"`
+	Data   []byte
 }
 
 func NewImageUpload() (*ImageUpload, error) {
@@ -36,7 +36,7 @@ func NewImageUpload() (*ImageUpload, error) {
 
 func (i *ImageUpload) EncodeWriteRequest() (*NmgrReq, error) {
 	type UploadReq struct {
-		Off uint32 `json:"off"`
+		Off  uint32 `json:"off"`
 		Data string `json:"data"`
 	}
 	nmr, err := NewNmgrReq()
@@ -50,8 +50,8 @@ func (i *ImageUpload) EncodeWriteRequest() (*NmgrReq, error) {
 	nmr.Id = IMGMGR_NMGR_OP_UPLOAD
 
 	uploadReq := &UploadReq{
-		Off : i.Offset,
-		Data : base64.StdEncoding.EncodeToString(i.Data),
+		Off:  i.Offset,
+		Data: base64.StdEncoding.EncodeToString(i.Data),
 	}
 	data, _ := json.Marshal(uploadReq)
 	nmr.Len = uint16(len(data))