Go: fix context (#17277)

### Summary

Continue to add context

---------

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-07-23 21:48:54 +08:00
committed by GitHub
parent 08e5d9c6be
commit 61201e437d
55 changed files with 725 additions and 642 deletions

View File

@@ -6,7 +6,7 @@ import (
"fmt"
)
func (p *PDFParser) ParseWithResult(filename string, data []byte) ParseResult {
func (p *PDFParser) ParseWithResult(ctx context.Context, filename string, data []byte) ParseResult {
if err := p.validateParseMethod(); err != nil {
return ParseResult{Err: err}
}