Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.31 KB

README.md

File metadata and controls

42 lines (33 loc) · 1.31 KB

atime

GoDoc Release Software License Build Status Coverage Status Go Report Card Sourcegraph

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