diff options
author | Robert Griesemer <gri@golang.org> | 2009-11-05 15:37:55 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2009-11-05 15:37:55 -0800 |
commit | 6e5de3ccfb44b61886265a3b9e4dacbe5c4a3354 (patch) | |
tree | 51e2461a5ad1b22760acca7b52c955e16f2d4b69 /src/pkg/json/struct_test.go | |
parent | 511fc8c45f93012d4f7038e6c10eb64c825820f0 (diff) | |
download | golang-6e5de3ccfb44b61886265a3b9e4dacbe5c4a3354.tar.gz |
gofmt-ify io, json, runtime, encoding
R=rsc
http://go/go-review/1017056
Diffstat (limited to 'src/pkg/json/struct_test.go')
-rw-r--r-- | src/pkg/json/struct_test.go | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/pkg/json/struct_test.go b/src/pkg/json/struct_test.go index bdcc2fddd..ad86d493f 100644 --- a/src/pkg/json/struct_test.go +++ b/src/pkg/json/struct_test.go @@ -10,27 +10,27 @@ import ( ) type myStruct struct { - T bool; - F bool; - S string; - I8 int8; - I16 int16; - I32 int32; - I64 int64; - U8 uint8; - U16 uint16; - U32 uint32; - U64 uint64; - I int; - U uint; - Fl float; - Fl32 float32; - Fl64 float64; - A []string; - My *myStruct; - Map map[string][]int; - MapStruct map[string]myStruct; - MapPtrStruct map[string]*myStruct; + T bool; + F bool; + S string; + I8 int8; + I16 int16; + I32 int32; + I64 int64; + U8 uint8; + U16 uint16; + U32 uint32; + U64 uint64; + I int; + U uint; + Fl float; + Fl32 float32; + Fl64 float64; + A []string; + My *myStruct; + Map map[string][]int; + MapStruct map[string]myStruct; + MapPtrStruct map[string]*myStruct; } const encoded = `{"t":true,"f":false,"s":"abc","i8":1,"i16":2,"i32":3,"i64":4,` @@ -43,9 +43,9 @@ const encoded = `{"t":true,"f":false,"s":"abc","i8":1,"i16":2,"i32":3,"i64":4,` `"mapptrstruct":{"m1":{"u8":8}}}` var decodedMap = map[string][]int{ - "k1": []int{1,2,3}, + "k1": []int{1, 2, 3}, "k2": []int{}, - "k3": []int{3,4}, + "k3": []int{3, 4}, } var decodedMapStruct = map[string]myStruct{ |