change project structure

This commit is contained in:
2020-11-03 10:47:19 +03:00
parent c76140ffe1
commit 44e955a047
59 changed files with 0 additions and 0 deletions

17
cmd/multini/stat_unix.go Normal file
View File

@ -0,0 +1,17 @@
// +build !windows
package main
import (
"os"
"syscall"
)
func GetUidGid(info os.FileInfo) (int, int) {
stat, ok := info.Sys().(*syscall.Stat_t)
if ok {
return int(stat.Uid), int(stat.Gid)
} else {
return -1, -1
}
}