fileprocessor

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 7 Imported by: 0

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

func IsSupported(path string) bool

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL