mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-26 10:20:29 +00:00
.. | ||
atime_darwin.go | ||
atime_dragonfly.go | ||
atime_freebsd.go | ||
atime_linux.go | ||
atime_nacl.go | ||
atime_netbsd.go | ||
atime_openbsd.go | ||
atime_plan9.go | ||
atime_solaris.go | ||
atime_windows.go | ||
LICENSE | ||
README.md | ||
stat.go |
atime
Usage
File Access Times for #golang
Looking for ctime or btime? Checkout https://github.com/djherbis/times
Go has a hidden atime function for most platforms, this repo makes it accessible.
package main
import (
"log"
"github.com/djherbis/atime"
)
func main() {
at, err := atime.Stat("myfile")
if err != nil {
log.Fatal(err.Error())
}
log.Println(at)
}
Installation
go get github.com/djherbis/atime