MakeAnnotations allocates an annotations container of the given size.
(numAnnotations AnnotationIdx)
| 35 | |
| 36 | // MakeAnnotations allocates an annotations container of the given size. |
| 37 | func MakeAnnotations(numAnnotations AnnotationIdx) Annotations { |
| 38 | return make(Annotations, numAnnotations) |
| 39 | } |
| 40 | |
| 41 | // Set an annotation in the container. |
| 42 | func (a *Annotations) Set(idx AnnotationIdx, annotation interface{}) { |
no outgoing calls
no test coverage detected
searching dependent graphs…