func (a *API) FetchRuleSets() (*[]RuleSet, error) {
	result, err := a.Get(config.RuleSetPrefix)
	if err != nil {
		return nil, err
	}

	var rulesets []RuleSet
	if err := json.Unmarshal(result, &rulesets); err != nil {
		return nil, err
	}

	return &rulesets, nil
}
func (a *API) FetchRuleSets() (*[]RuleSet, error) {
	result, err := a.Get(config.RuleSetPrefix)
	if err != nil {
		return nil, err
	}

	var rulesets []RuleSet
	if err := json.Unmarshal(result, &rulesets); err != nil {
		return nil, err
	}

	return &rulesets, nil
}
func ( a * API ) FetchRuleSets ( ) ( * [ ] RuleSet , error ) { result , err := a . Get ( config . RuleSetPrefix ) if err != nil { return nil , err } var rulesets [ ] RuleSet if err := json . Unmarshal ( result , & rulesets ) ; err != nil { return nil , err } return & rulesets , nil }
// FetchRuleSets retrieves all rule sets available to API Token.
FetchRuleSets retrieves all rule sets available to API Token .