diff --git a/atime_linux.go b/atime_atim.go similarity index 82% rename from atime_linux.go rename to atime_atim.go index e599d8b..947edda 100644 --- a/atime_linux.go +++ b/atime_atim.go @@ -1,3 +1,5 @@ +// +build linux dragonfly openbsd solaris + package missinggo import ( diff --git a/atime_darwin.go b/atime_atimespec.go similarity index 86% rename from atime_darwin.go rename to atime_atimespec.go index 5ccbc43..d7c14dc 100644 --- a/atime_darwin.go +++ b/atime_atimespec.go @@ -1,3 +1,5 @@ +// +build darwin freebsd netbsd + package missinggo import ( diff --git a/atime_freebsd.go b/atime_freebsd.go deleted file mode 100644 index 5ccbc43..0000000 --- a/atime_freebsd.go +++ /dev/null @@ -1,12 +0,0 @@ -package missinggo - -import ( - "os" - "syscall" - "time" -) - -func fileInfoAccessTime(fi os.FileInfo) time.Time { - ts := fi.Sys().(*syscall.Stat_t).Atimespec - return time.Unix(int64(ts.Sec), int64(ts.Nsec)) -} diff --git a/atime_netbsd.go b/atime_netbsd.go deleted file mode 100644 index 5ccbc43..0000000 --- a/atime_netbsd.go +++ /dev/null @@ -1,12 +0,0 @@ -package missinggo - -import ( - "os" - "syscall" - "time" -) - -func fileInfoAccessTime(fi os.FileInfo) time.Time { - ts := fi.Sys().(*syscall.Stat_t).Atimespec - return time.Unix(int64(ts.Sec), int64(ts.Nsec)) -}