func (n *Note) End() int {
	return n.Start + len(n.Val)
}
End calculates the end position of this note.
package anno
import (
	"bytes"
)
type Finder interface {
	Find(s []byte) (Notes, error)
}
type Notes []*Note
func (n Notes) Len() int           { return len(n) }
func (n Notes) Swap(i, j int)      { n[i], n[j] = n[j], n[i] }
func (n Notes) Less(i, j int) bool { return n[i].Start < n[j].Start }
type Note struct {
	Val   []byte `json:"val"`
	Start int    `json:"start"`
	Kind  string `json:"kind"`
}