firebase.go
func (c *Client) Rules(params map[string]string) (Rules, error) {
	res, err := c.api.Call("GET", c.Url+"/.settings/rules", c.Auth, nil, params)
	if err != nil {
		return nil, err
	}

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

	return v, nil
}
func (c *Client) Rules(params map[string]string) (Rules, error) {
	res, err := c.api.Call("GET", c.Url+"/.settings/rules", c.Auth, nil, params)
	if err != nil {
		return nil, err
	}

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

	return v, nil
}
func ( c * Client ) Rules ( params map [ string ] string ) ( Rules , error ) { res , err := c . api . Call ( " " , c . Url + " " , c . Auth , nil , params ) if err != nil { return nil , err } var v Rules err = json . Unmarshal ( res , & v ) if err != nil { log . Printf ( " \n " , err ) return nil , err } return v , nil }
// Rules returns the security rules for the database.
Rules returns the security rules for the database .