annotated

package
v0.114.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotated

type Annotated interface {
	Annotations() annotation.Annotations
	Filter(preds ...AnnotationPredicate) annotation.Annotations
}

type AnnotationPredicate

type AnnotationPredicate func(annotation.Annotation) bool

AnnotationPredicate is a function that tests whether an annotation matches a given condition.

func ByAnalyzer

func ByAnalyzer(analyzerID string) AnnotationPredicate

ByAnalyzer returns a predicate that matches annotations produced by the given analyzer ID.

func ByName

func ByName(name string) AnnotationPredicate

ByName returns a predicate that matches annotations with the given name.

func ByType

func ByType(atype string) AnnotationPredicate

ByType returns a predicate that matches annotations with the given type.

type BaseAnnotated

type BaseAnnotated struct {
	// contains filtered or unexported fields
}

BaseAnnotated provides a default implementation of the Annotated interface.

func (*BaseAnnotated) AddAnnotations

func (a *BaseAnnotated) AddAnnotations(annotations ...annotation.Annotation)

func (*BaseAnnotated) Annotations

func (a *BaseAnnotated) Annotations() annotation.Annotations

func (*BaseAnnotated) Filter

Filter returns all annotations matching every provided predicate. Predicates can be composed using the ByName, ByType, and ByAnalyzer helpers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL