README ¶ 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 Expand ▾ Collapse ▴ Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Overview ¶ Package atime provides a platform-independent way to get atimes for files. Index ¶ func Get(fi os.FileInfo) time.Time func Stat(name string) (time.Time, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Get ¶ func Get(fi os.FileInfo) time.Time Get returns the Last Access Time for the given FileInfo func Stat ¶ func Stat(name string) (time.Time, error) Stat returns the Last Access Time for the given filename Types ¶ This section is empty. Source Files ¶ View all Source files atime_linux.go stat.go Click to show internal directories. Click to hide internal directories.