Some examples - Stop using `catch ...`; make it a `switch` that checks if the error is `error.EndOfStream` - Define error sets
Some examples
catch ...; make it aswitchthat checks if the error iserror.EndOfStream