Documentation ¶
Overview ¶
Package ref provides the general-purpose ability to mark a document as targeted for specific library.
Index ¶
Constants ¶
View Source
const ( AnnotationLibraryRef = "library/ref" LibrarySep = "@" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LibraryRef ¶
func (LibraryRef) AsString ¶
func (p LibraryRef) AsString() string
func (LibraryRef) Matches ¶
func (p LibraryRef) Matches(lpp LibraryRef) bool
type LibraryRefExtractor ¶
type LibraryRefExtractor struct { }
func (LibraryRefExtractor) FromAnnotation ¶
func (n LibraryRefExtractor) FromAnnotation(anns template.NodeAnnotations) ([]LibraryRef, error)
func (LibraryRefExtractor) FromStr ¶
func (n LibraryRefExtractor) FromStr(libRefStr string) ([]LibraryRef, error)
Click to show internal directories.
Click to hide internal directories.