mirror of
https://github.com/minio/minio.git
synced 2024-12-26 23:25:54 -05:00
43 lines
1.3 KiB
Markdown
43 lines
1.3 KiB
Markdown
|
atime
|
||
|
==========
|
||
|
|
||
|
[![GoDoc](https://godoc.org/github.com/djherbis/atime?status.svg)](https://godoc.org/github.com/djherbis/atime)
|
||
|
[![Release](https://img.shields.io/github/release/djherbis/atime.svg)](https://github.com/djherbis/atime/releases/latest)
|
||
|
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.txt)
|
||
|
[![Build Status](https://travis-ci.org/djherbis/atime.svg?branch=master)](https://travis-ci.org/djherbis/atime)
|
||
|
[![Coverage Status](https://coveralls.io/repos/djherbis/atime/badge.svg?branch=master)](https://coveralls.io/r/djherbis/atime?branch=master)
|
||
|
[![Go Report Card](https://goreportcard.com/badge/github.com/djherbis/atime)](https://goreportcard.com/report/github.com/djherbis/atime)
|
||
|
[![Sourcegraph](https://sourcegraph.com/github.com/djherbis/atime/-/badge.svg)](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
|
||
|
```
|