Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
d8bc797e
Commit
d8bc797e
authored
Dec 02, 2009
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apply gofmt to json files
R=rsc
https://golang.org/cl/164071
parent
114f73f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
decode.go
src/pkg/json/decode.go
+1
-3
decode_test.go
src/pkg/json/decode_test.go
+2
-2
No files found.
src/pkg/json/decode.go
View file @
d8bc797e
...
...
@@ -51,9 +51,7 @@ func (j *decoder) Int64(i int64) { j.value = float64(i) }
func
(
j
*
decoder
)
Uint64
(
i
uint64
)
{
j
.
value
=
float64
(
i
)
}
func
(
j
*
decoder
)
Float64
(
f
float64
)
{
j
.
value
=
float64
(
f
)
}
func
(
j
*
decoder
)
Float64
(
f
float64
)
{
j
.
value
=
float64
(
f
)
}
func
(
j
*
decoder
)
String
(
s
string
)
{
j
.
value
=
s
}
...
...
src/pkg/json/decode_test.go
View file @
d8bc797e
...
...
@@ -104,8 +104,8 @@ func assertResult(t *testing.T, results, expected interface{}) {
}
type
decodeTest
struct
{
s
string
;
r
interface
{};
s
string
;
r
interface
{};
}
var
tests
=
[]
decodeTest
{
...
...
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