Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ImageExtensions = map[string]bool{ ".png": true, ".jpg": true, ".jpeg": true, ".gif": true, ".webp": true, ".bmp": true, ".tiff": true, ".tif": true, ".svg": true, ".ico": true, }
Suffixes treated as image attachments
Functions ¶
func ResolveAttachmentPath ¶
func SplitPathInput ¶
Splits a leading quoted or backslash escaped path token from the trailing free form text
Types ¶
type Drop ¶
Dragged or pasted file path found at the start of the input with the text after it
func DetectFileDrop ¶
Detects a dragged or pasted file path at the start of the input, nil when the text is not a path