mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-03-02 18:11:01 +00:00
39 lines
945 B
Markdown
39 lines
945 B
Markdown
atime
|
|
==========
|
|
|
|
[](https://godoc.org/github.com/djherbis/atime)
|
|
[](LICENSE.txt)
|
|
[](https://travis-ci.org/djherbis/atime)
|
|
[](https://coveralls.io/r/djherbis/atime?branch=master)
|
|
|
|
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
|
|
```
|