woodpecker/vendor/gopkg.in/djherbis/atime.v1
2016-04-12 17:27:24 -07:00
..
atime_darwin.go backport 0.5 queue packages 2016-04-12 17:27:24 -07:00
atime_dragonfly.go backport 0.5 queue packages 2016-04-12 17:27:24 -07:00
atime_freebsd.go backport 0.5 queue packages 2016-04-12 17:27:24 -07:00
atime_linux.go backport 0.5 queue packages 2016-04-12 17:27:24 -07:00
atime_nacl.go backport 0.5 queue packages 2016-04-12 17:27:24 -07:00
atime_netbsd.go backport 0.5 queue packages 2016-04-12 17:27:24 -07:00
atime_openbsd.go backport 0.5 queue packages 2016-04-12 17:27:24 -07:00
atime_plan9.go backport 0.5 queue packages 2016-04-12 17:27:24 -07:00
atime_solaris.go backport 0.5 queue packages 2016-04-12 17:27:24 -07:00
atime_windows.go backport 0.5 queue packages 2016-04-12 17:27:24 -07:00
LICENSE backport 0.5 queue packages 2016-04-12 17:27:24 -07:00
README.md backport 0.5 queue packages 2016-04-12 17:27:24 -07:00
stat.go backport 0.5 queue packages 2016-04-12 17:27:24 -07:00

atime

GoDoc Software License Build Status Coverage Status

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