firebase.go
func (c *Client) Child(path string, params map[string]string, v interface{}) *Client {
	u := c.Url + "/" + path

	res, err := c.api.Call("GET", u, c.Auth, nil, params)
	if err != nil {
		return nil
	}

	err = json.Unmarshal(res, &v)
	if err != nil {
		log.Printf("%v\n", err)
		return nil
	}

	ret := &Client{
		api:   c.api,
		Auth:  c.Auth,
		Url:   u,
		value: v}

	return ret
}
func (c *Client) Child(path string, params map[string]string, v interface{}) *Client {
	u := c.Url + "/" + path

	res, err := c.api.Call("GET", u, c.Auth, nil, params)
	if err != nil {
		return nil
	}

	err = json.Unmarshal(res, &v)
	if err != nil {
		log.Printf("%v\n", err)
		return nil
	}

	ret := &Client{
		api:   c.api,
		Auth:  c.Auth,
		Url:   u,
		value: v}

	return ret
}
func ( c * Client ) Child ( path string , params map [ string ] string , v interface { } ) * Client { u := c . Url + " " + path res , err := c . api . Call ( " " , u , c . Auth , nil , params ) if err != nil { return nil } err = json . Unmarshal ( res , & v ) if err != nil { log . Printf ( " \n " , err ) return nil } ret := & Client { api : c . api , Auth : c . Auth , Url : u , value : v } return ret }
// Child returns a populated pointer for a given path.
// If the path cannot be found, a null pointer is returned.
Child returns a populated pointer for a given path . If the path cannot be found a null pointer is returned .