Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSupportedExtensions ¶
func GetSupportedExtensions() []string
GetSupportedExtensions returns all supported file extensions
func IsSupported ¶
IsSupported checks if a file extension is supported
Types ¶
type FileAttachment ¶
type FileAttachment struct {
Path string // Original file path
Type string // "image", "text", "pdf"
Content string // base64 for images, text for others
MimeType string // MIME type for images
Name string // filename
}
FileAttachment represents a processed file attachment
func ProcessFile ¶
func ProcessFile(path string) (*FileAttachment, error)
ProcessFile processes a single file and returns a FileAttachment
func ProcessFiles ¶
func ProcessFiles(paths []string) ([]*FileAttachment, error)
ProcessFiles processes multiple files and returns a slice of FileAttachments
Click to show internal directories.
Click to hide internal directories.