google-code-export / camlistore

Automatically exported from code.google.com/p/camlistore
Apache License 2.0
0 stars 0 forks source link

Don't use map[string]interface{} for JSON anywhere #539

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Meta-tracking bug to remove (almost) all use of map[string]interface{} for JSON.

Related Issue 99 is for search.

example of bogus usage to be fixed:

pkg/client/cilent.go:

func (c *Client) doDiscovery() error {
...
        // TODO: make a proper struct type for this in another package somewhere:
        m := make(map[string]interface{})
        if err := httputil.DecodeJSON(res, &m); err != nil {
                return err
        }

Original issue reported on code.google.com by bradfitz on 21 Oct 2014 at 2:01

GoogleCodeExporter commented 9 years ago

Original comment by bradfitz on 21 Oct 2014 at 2:01

GoogleCodeExporter commented 9 years ago
This issue has moved to https://camlistore.org/issue/539

Original comment by bradfitz on 14 Dec 2014 at 11:37