From a74376866184570e58356fa630c61974c98ad99c Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Wed, 3 Aug 2022 23:37:59 +0200 Subject: [PATCH] changed parser func signatures --- file_parser.go | 2 +- torrent_parser.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/file_parser.go b/file_parser.go index db80b12..dd73f41 100644 --- a/file_parser.go +++ b/file_parser.go @@ -1,3 +1,3 @@ package model -type FileParserFunc func(str string) (file *ParsedFile, ok bool) +type FileParserFunc func(parser *Parser, str string) (file *ParsedFile, ok bool) diff --git a/torrent_parser.go b/torrent_parser.go index 73b0a9c..5763a77 100644 --- a/torrent_parser.go +++ b/torrent_parser.go @@ -1,3 +1,3 @@ package model -type TorrentParserFunc func(torrent *Torrent) (parsedTorrent *ParsedTorrent, ok bool) +type TorrentParserFunc func(parser *Parser, torrent *Torrent) (parsedTorrent *ParsedTorrent, ok bool)