Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
og-rek
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
og-rek
Commits
f9afcdca
Commit
f9afcdca
authored
Jan 30, 2014
by
Damian Gryski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deadcode--
parent
28ab321f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
encode.go
encode.go
+0
-18
No files found.
encode.go
View file @
f9afcdca
...
@@ -145,24 +145,6 @@ func (e *Encoder) encodeInt(k reflect.Kind, i int64) {
...
@@ -145,24 +145,6 @@ func (e *Encoder) encodeInt(k reflect.Kind, i int64) {
}
}
}
}
func
(
e
*
Encoder
)
encodeScalar
(
rv
reflect
.
Value
)
{
switch
rv
.
Kind
()
{
case
reflect
.
Array
,
reflect
.
Slice
:
if
rv
.
Type
()
.
Elem
()
.
Kind
()
==
reflect
.
Uint8
{
e
.
encodeBytes
(
rv
.
Bytes
())
}
else
{
e
.
encodeArray
(
rv
)
}
case
reflect
.
Map
:
e
.
encodeMap
(
rv
)
case
reflect
.
Interface
:
e
.
encodeScalar
(
rv
.
Elem
())
default
:
e
.
encode
(
rv
)
}
}
func
(
e
*
Encoder
)
encodeMap
(
m
reflect
.
Value
)
{
func
(
e
*
Encoder
)
encodeMap
(
m
reflect
.
Value
)
{
keys
:=
m
.
MapKeys
()
keys
:=
m
.
MapKeys
()
...
...
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