Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CompiledDefaultPatterns = []*regexp.Regexp{}
View Source
var DefaultPatterns = []string{
`\[[^\]]*\]\(([^)]+)\)`,
`(?P<match>(https?://|git@|git://|ssh://|ftp://|file:///)[^\s]+)`,
`diff --git a/([.\w\-@~\[\]]+?/[.\w\-@\[\]]+) b/([.\w\-@~\[\]]+?/[.\w\-@\[\]]+)`,
`--- a/([^\s]+)`,
`\+\+\+ b/([^\s]+)`,
`sha256:([0-9a-f]{64})`,
`(?P<match>([.\w\-@$~\[\]]+)?(/[.\w\-@$\[\]]+)+)`,
`#[0-9a-fA-F]{6}`,
`[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}`,
`Qm[0-9a-zA-Z]{44}`,
`[0-9a-f]{7,40}`,
`\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}`,
`[A-f0-9:]+:+[A-f0-9:]+[%\w\d]+`,
`0x[0-9a-fA-F]+`,
`[0-9]{4,}`,
`stash@\{[0-9]+\}`,
}
Functions ¶
func AssignHints ¶
AssignHints assigns hints to `matches` by giving shorter hints to matches that are closer to `origin`.
func ValidateAlphabet ¶
Types ¶
type Setting ¶
func WithAlphabet ¶
WithAlphabet sets the alphabet to use for generating hints
func WithParams ¶
func WithParams(params *params.Parameters) Setting
WithParams provides parameters this Thumbs will use for rendering
func WithResult ¶
func WithResult(result chan<- interface{}) Setting
Click to show internal directories.
Click to hide internal directories.