Go: file parser config (#15989)

### What problem does this PR solve?

Add parser config

### Type of change

- [x] New Feature (non-breaking change which adds functionality)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-06-13 19:40:43 +08:00
committed by GitHub
parent f671e7cb34
commit e89afbae21
9 changed files with 137 additions and 21 deletions

View File

@@ -3252,8 +3252,10 @@ func (c *CLI) UserParseLocalFile(cmd *Command) (ResponseIf, error) {
}
fileType := utility.GetFileType(filename)
fileParser, err := parser.GetParser(fileType)
config := map[string]string{
"lib_type": "office_oxide",
}
fileParser, err := parser.GetParser(fileType, config)
if err != nil {
return nil, err
}