Closed likeawizard closed 1 year ago
With the abstraction of PGN sources (#25)
A further abstraction could be added beneath. Now all PGNSource implementations have a os.File implementation.
Be it plain pgn or compressed via zst or bzip2 the underlying data source could be abstracted to either file or web resource.
http.Get()
returns the response with a body. The body implements the same io.Reader interface so changes should be minimal.
The main challenges could be:
Support URLs as resource identifier for PGN files