fileparser

package
v1.4.4-alpha1105b Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Exports = map[string]any{
	"ParseFile": ParseFileElements,
}

Functions

func GetSupportedExtensions

func GetSupportedExtensions() []string

GetSupportedExtensions 返回支持的文件扩展名列表

func IsSupportedExtension

func IsSupportedExtension(filename string) bool

IsSupportedExtension 检查文件扩展名是否支持

func ParseFileElements

func ParseFileElements(filePath string) (map[string][]types.File, error)

Types

type FileType

type FileType string

FileType 定义支持的文件类型

const (
	FileTypeWord  FileType = "word"
	FileTypeExcel FileType = "excel"
	FileTypePPT   FileType = "ppt" // 新增PPT文件类型

)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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