Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct {
Type AnnotationType `json:"type"`
Text string `json:"text"`
StartX int `json:"startx"`
StartY int `json:"starty"`
EndX int `json:"endx"`
EndY int `json:"endy"`
Color string `json:"color"`
Author string `json:"author"`
Date string `json:"date"`
Comment string `json:"comment"`
}
func NewAnnotation ¶
func NewAnnotation(t AnnotationType, text string, opts ...AnnotationOption) Annotation
type AnnotationOption ¶
type AnnotationOption func(*Annotation)
func WithComment ¶
func WithComment(comment string) AnnotationOption
func WithLocation ¶
func WithLocation(startx, starty, endx, endy int) AnnotationOption
type AnnotationType ¶
type AnnotationType string
const ( AnnotationHighlight AnnotationType = "Highlight" AnnotationUnderscore AnnotationType = "Underscore" AnnotationComment AnnotationType = "Comment" )
Click to show internal directories.
Click to hide internal directories.