{"modulePath":"github.com/RedAFD/code-core","version":"v1.14.0-rc8","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package references\n\n## Functions\n\n```go\nfunc FindAllMentionsMarkdown(content string) []string\n```\nFindAllMentionsMarkdown matches mention patterns in given content and returns a list of found unvalidated user names \\*\\*not including\\*\\* the @ prefix.\n\n```go\nfunc IsXrefActionable(ref *RenderizableReference, extTracker bool, alphaNum bool) bool\n```\nIsXrefActionable returns true if the xref action is actionable (i.e. produces a result when resolved)\n\n## Types\n\n```go\ntype IssueReference struct {\n\tIndex   int64\n\tOwner   string\n\tName    string\n\tAction  XRefAction\n\tTimeLog string\n}\n```\nIssueReference contains an unverified cross-reference to a local issue or pull request\n\n```go\nfunc FindAllIssueReferences(content string) []IssueReference\n```\nFindAllIssueReferences returns a list of unvalidated references found in a string.\n\n```go\nfunc FindAllIssueReferencesMarkdown(content string) []IssueReference\n```\nFindAllIssueReferencesMarkdown strips content from markdown markup and returns a list of unvalidated references found in it.\n\n```go\ntype RefSpan struct {\n\tStart int\n\tEnd   int\n}\n```\nRefSpan is the position where the reference was found within the parsed text\n\n```go\nfunc FindAllMentionsBytes(content []byte) []RefSpan\n```\nFindAllMentionsBytes matches mention patterns in given content and returns a list of locations for the unvalidated user names, including the @ prefix.\n\n```go\nfunc FindFirstMentionBytes(content []byte) (bool, RefSpan)\n```\nFindFirstMentionBytes matches the first mention in then given content and returns the location of the unvalidated user name, including the @ prefix.\n\n```go\ntype RenderizableReference struct {\n\tIssue          string\n\tOwner          string\n\tName           string\n\tIsPull         bool\n\tRefLocation    *RefSpan\n\tAction         XRefAction\n\tActionLocation *RefSpan\n}\n```\nRenderizableReference contains an unverified cross-reference to with rendering information The IsPull member means that a \\`!num\\` reference was used instead of \\`#num\\`. This kind of reference is used to make pulls available when an external issue tracker is used. Otherwise, \\`#\\` and \\`!\\` are completely interchangeable.\n\n```go\nfunc FindRenderizableReferenceAlphanumeric(content string) (bool, *RenderizableReference)\n```\nFindRenderizableReferenceAlphanumeric returns the first alphanumeric unvalidated references found in a string.\n\n```go\nfunc FindRenderizableReferenceNumeric(content string, prOnly bool) (bool, *RenderizableReference)\n```\nFindRenderizableReferenceNumeric returns the first unvalidated reference found in a string.\n\n```go\ntype XRefAction int64\n```\nXRefAction represents the kind of effect a cross reference has once is resolved\n\n```go\nconst (\n\t// XRefActionNone means the cross-reference is simply a comment\n\tXRefActionNone XRefAction = iota // 0\n\t// XRefActionCloses means the cross-reference should close an issue if it is resolved\n\tXRefActionCloses // 1\n\t// XRefActionReopens means the cross-reference should reopen an issue if it is resolved\n\tXRefActionReopens // 2\n\t// XRefActionNeutered means the cross-reference will no longer affect the source\n\tXRefActionNeutered // 3\n)\n```\n\n","path":"github.com/RedAFD/code-core/modules/references","name":"references","synopsis":"","isRedistributable":true}
