api/check.go
func (a *API) FetchChecks() (*[]Check, error) {
	result, err := a.Get(config.CheckPrefix)
	if err != nil {
		return nil, err
	}

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

	return &checks, nil
}
func (a *API) FetchChecks() (*[]Check, error) {
	result, err := a.Get(config.CheckPrefix)
	if err != nil {
		return nil, err
	}

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

	return &checks, nil
}
func ( a * API ) FetchChecks ( ) ( * [ ] Check , error ) { result , err := a . Get ( config . CheckPrefix ) if err != nil { return nil , err } var checks [ ] Check if err := json . Unmarshal ( result , & checks ) ; err != nil { return nil , err } return & checks , nil }
// FetchChecks retrieves all checks available to the API Token.
FetchChecks retrieves all checks available to the API Token .