You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose StatFile to all GOOS/GOARCH. In most cases this effectively just calls to os.File.Stat() and then Get() on the result.
On Windows however, this will reuse the file handle of the open os.File passed to it to perform the same work normally done by times.Stat (but saves reopening the file).
Added support for GOOS=js, GOARCH=wasm.
Added tests for directories (not just files).
Added travis support for running tests & coverage on linux, osx, windows, and js/wasm.
Tests were failing on some platforms because the tests required file times to be within 50ms of the expected time. Some platforms only support second precision, so I've widened the acceptable range to +/- 1s from the expected time.