Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
7d9d91d5
Commit
7d9d91d5
authored
8 years ago
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
91c8c66b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
137 additions
and
130 deletions
+137
-130
t/neo/marshal.go
t/neo/marshal.go
+129
-129
t/neo/protogen.go
t/neo/protogen.go
+8
-1
No files found.
t/neo/marshal.go
View file @
7d9d91d5
This diff is collapsed.
Click to expand it.
t/neo/protogen.go
View file @
7d9d91d5
...
...
@@ -261,7 +261,14 @@ func (d *decoder) emitobjtype(assignto string, obj types.Object, typ types.Type)
break
}
d
.
emit
(
"%s = %s"
,
assignto
,
d
.
decodedBasic
(
obj
,
u
))
decoded
:=
d
.
decodedBasic
(
obj
,
u
)
if
typ
!=
u
{
// typ is a named type over some basic, like
// type ClusterState int32
// -> need to cast
decoded
=
fmt
.
Sprintf
(
"%v(%v)"
,
typ
,
decoded
)
}
d
.
emit
(
"%s = %s"
,
assignto
,
decoded
)
case
*
types
.
Array
:
// TODO optimize for [...]byte
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment