8000 GitHub - djherbis/atime: Access Times for files #golang · GitHub
[go: up one dir, main page]

Skip to content
djherbisPublic

About

Access Times for files #golang

Resources

Stars

43 stars

Watchers

1 watching

Forks

Repository files navigation

atime

GoDoc Release Software License go test 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

About

Access Times for files #golang

Resources

Stars

43 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0