1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
atime
==========
[](https://godoc.org/github.com/djherbis/atime)
[](https://github.com/djherbis/atime/releases/latest)
[](LICENSE.txt)
[](https://travis-ci.org/djherbis/atime)
[](https://coveralls.io/r/djherbis/atime?branch=master)
[](https://goreportcard.com/report/github.com/djherbis/atime)
[](https://sourcegraph.com/github.com/djherbis/atime?badge)
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.
```go
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
------------
```sh
go get github.com/djherbis/atime
```
|