Go: add context to lots of interface (#17253)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-07-22 22:30:57 +08:00
committed by GitHub
parent b3d394954d
commit d19a036cda
221 changed files with 3215 additions and 2337 deletions

View File

@@ -18,6 +18,8 @@
package parser
import "context"
type PPTParser struct{}
func NewPPTParser() *PPTParser {
@@ -33,6 +35,6 @@ func (p *PPTParser) String() string {
// hint (OLE binary). The two file families differ only in the
// binary container; the python parser.py:slides branch treats
// them uniformly.
func (p *PPTParser) ParseWithResult(filename string, data []byte) ParseResult {
return (&PPTXParser{format: "ppt"}).ParseWithResult(filename, data)
func (p *PPTParser) ParseWithResult(ctx context.Context, filename string, data []byte) ParseResult {
return (&PPTXParser{format: "ppt"}).ParseWithResult(ctx, filename, data)
}