reader: restore go1.0 compatibility