You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
322 B
13 lines
322 B
//go:build linux || darwin || freebsd || netbsd || openbsd || plan9 || solaris || zos
|
|
// +build linux darwin freebsd netbsd openbsd plan9 solaris zos
|
|
|
|
package util
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
func GetFileUidGid(fi os.FileInfo) (uid, gid uint32) {
|
|
return fi.Sys().(*syscall.Stat_t).Uid, fi.Sys().(*syscall.Stat_t).Gid
|
|
}
|