OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0055f19
)
optimise
author
oysheng
<oysheng@bytom.io>
Wed, 23 May 2018 09:23:30 +0000
(17:23 +0800)
committer
oysheng
<oysheng@bytom.io>
Wed, 23 May 2018 09:23:30 +0000
(17:23 +0800)
api/program.go
patch
|
blob
|
history
diff --git
a/api/program.go
b/api/program.go
index
c53ae84
..
624503a
100644
(file)
--- a/
api/program.go
+++ b/
api/program.go
@@
-40,7
+40,7
@@
func (a *API) decodeProgram(ctx context.Context, ins struct {
var result string
for _, inst := range insts {
- result
= result +
fmt.Sprintf("%s %s\n", inst.Op, hex.EncodeToString(inst.Data))
+ result
+=
fmt.Sprintf("%s %s\n", inst.Op, hex.EncodeToString(inst.Data))
}
return NewSuccessResponse(DecodeProgResp{Instructions: result})
}