ref

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

type LibraryRef struct {
	Path  string
	Alias string
}

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)

Jump to

Keyboard shortcuts

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