func (a *API) FetchAnnotations() (*[]Annotation, error) {
	result, err := a.Get(config.AnnotationPrefix)
	if err != nil {
		return nil, err
	}

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

	return &annotations, nil
}
func (a *API) FetchAnnotations() (*[]Annotation, error) {
	result, err := a.Get(config.AnnotationPrefix)
	if err != nil {
		return nil, err
	}

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

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