package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Functions

FindAllIssueReferences returns a list of unvalidated references found in a string.
FindAllIssueReferencesMarkdown strips content from markdown markup and returns a list of unvalidated references found in it.
FindAllMentionsBytes matches mention patterns in given content and returns a list of locations for the unvalidated user names, including the @ prefix.
FindAllMentionsMarkdown matches mention patterns in given content and returns a list of found unvalidated user names **not including** the @ prefix.
FindFirstMentionBytes matches the first mention in then given content and returns the location of the unvalidated user name, including the @ prefix.
FindRenderizableCommitCrossReference returns the first unvalidated commit cross reference found in a string.
FindRenderizableReferenceAlphanumeric returns the first alphanumeric unvalidated references found in a string.
FindRenderizableReferenceNumeric returns the first unvalidated reference found in a string.
FindRenderizableReferenceRegexp returns the first regexp unvalidated references found in a string.
IsXrefActionable returns true if the xref action is actionable (i.e.

# Constants

# Structs

IssueReference contains an unverified cross-reference to a local issue or pull request.
RefSpan is the position where the reference was found within the parsed text.
RenderizableReference contains an unverified cross-reference to with rendering information The IsPull member means that a `!num` reference was used instead of `#num`.

# Type aliases

XRefAction represents the kind of effect a cross reference has once is resolved.