repos / dbin

📦 Poor man's package manager.
git clone https://github.com/xplshn/dbin.git

xplshn  ·  2025-08-13

os_darwin.go

Go
 1//go:build darwin
 2
 3package main
 4
 5import (
 6	"syscall"
 7	"time"
 8)
 9
10// ATime returns the access time stored in Stat_t on macOS.
11func ATime(st *syscall.Stat_t) time.Time {
12	return time.Unix(int64(st.Atimespec.Sec), int64(st.Atimespec.Nsec))
13}