This is a key made from the information returned by "stat". It is intended to be different if the file has been edited, and to otherwise be equal if the file has not been edited. It should usually work, but no guarantees. See https://apenwarr.ca/log/20181113 for more information about why this can be broken. For example, writing to a file with mmap on WSL on Windows won't change this key. Hopefully this isn't too much of an issue. Additional reading: - https://github.com/npm/npm/pull/20027 - https://github.com/golang/go/commit/7dea509703eb5ad66a35628b12a678110fbb1f72
This is part of the interface because the mock interface used for tests should not depend on file system behavior (i.e. different slashes for Windows) while the real interface should.
Some file systems have a time resolution of only a few seconds. If a mtime value is too new, we won't be able to tell if it has been recently modified or not. So we only use mtimes for comparison if they are sufficiently old. Apparently the FAT file system has a resolution of two seconds according to this article: https://en.wikipedia.org/wiki/Stat_(system_call).
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.