devrant.go
func (c *Client) Rants(sort string, limit int, skip int) ([]RantModel, error) {
	if sort == "" {
		sort = "algo"
	} else if (sort != "algo") && (sort != "recent") && (sort != "top") {
		return nil, errors.New("Invalid string in sort method")
	}
	if limit <= 0 {
		limit = 50
	}

	url := fmt.Sprintf(RANTS_PATH, API, sort, limit, skip, APP_VERSION)
	res, err := http.Get(url)
	if err != nil {
		return nil, err
	}
	var data RantsResponse
	json.NewDecoder(res.Body).Decode(&data)
	if !data.Success && data.Error != "" {
		return nil, errors.New(data.Error)
	}
	return data.Rants, nil
}
func (c *Client) Rants(sort string, limit int, skip int) ([]RantModel, error) {
	if sort == "" {
		sort = "algo"
	} else if (sort != "algo") && (sort != "recent") && (sort != "top") {
		return nil, errors.New("Invalid string in sort method")
	}
	if limit <= 0 {
		limit = 50
	}

	url := fmt.Sprintf(RANTS_PATH, API, sort, limit, skip, APP_VERSION)
	res, err := http.Get(url)
	if err != nil {
		return nil, err
	}
	var data RantsResponse
	json.NewDecoder(res.Body).Decode(&data)
	if !data.Success && data.Error != "" {
		return nil, errors.New(data.Error)
	}
	return data.Rants, nil
}
// Fetches rants