Source File
modkey_unix.go
Belonging Package
github.com/evanw/esbuild/internal/fs
, := unix.TimeToTimespec(time.Now())
if != nil {
return ModKey{},
}
:= .Mtim.Sec + modKeySafetyGap
if > .Sec || ( == .Sec && .Mtim.Nsec > .Nsec) {
return ModKey{}, modKeyUnusable
}
return ModKey{
inode: .Ino,
size: .Size,
mtime_sec: int64(.Mtim.Sec),
mtime_nsec: int64(.Mtim.Nsec),
mode: uint32(.Mode),
uid: .Uid,
}, nil
![]() |
The pages are generated with Golds v0.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. |