carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1//go:build !unix
2
3package host
4
5import "io/fs"
6
7// fileOwner has no answer off unix. Every caller treats !ok as "say nothing
8// about ownership" rather than as a failure, so the CLI still builds and runs
9// on Windows; the box side this serves is Linux-only anyway.
10func fileOwner(fs.FileInfo) (uid, gid int, ok bool) { return 0, 0, false }
11
12// fileInode has no answer off unix either; a caller keys on size and mtime
13// alone there.
14func fileInode(fs.FileInfo) (dev, ino uint64, ok bool) { return 0, 0, false }
15