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.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.go')
| -rw-r--r-- | src/pkg/json/struct.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pkg/json/struct.go b/src/pkg/json/struct.go index 03e2966c8..11cccdce9 100644 --- a/src/pkg/json/struct.go +++ b/src/pkg/json/struct.go @@ -13,11 +13,11 @@ import ( ) type structBuilder struct { - val reflect.Value; + val reflect.Value; // if map_ != nil, write val to map_[key] on each change - map_ *reflect.MapValue; - key reflect.Value; + map_ *reflect.MapValue; + key reflect.Value; } var nobuilder *structBuilder @@ -113,7 +113,8 @@ func (b *structBuilder) Float64(f float64) { } } -func (b *structBuilder) Null() {} +func (b *structBuilder) Null() { +} func (b *structBuilder) String(s string) { if b == nil { |
