1//go:build windows
2
3package http
4
5import (
6 "fmt"
7 "syscall"
8)
9
10func statAtime(sys any) (int64, error) {
11 x, ok := sys.(*syscall.Win32FileAttributeData)
12 if !ok {
13 return 0, fmt.Errorf("sys is a %T, expected *syscall.Win32FileAttributeData", sys)
14 }
15 return x.LastAccessTime.Nanoseconds(), nil
16}
17