1
0
mirror of https://github.com/containers/buildah.git synced 2025-12-14 19:42:11 +03:00
Files
buildah/util/util_unix.go
Nalin Dahyabhai ac7c018095 Suppress "meaningless package name" warnings for public APIs
Supporess "meaningless package name" warnings for exported APIs which we
know are being used by our API consumers, so that we don't break them.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-11-13 16:05:36 -05:00

17 lines
274 B
Go

//go:build linux || darwin || freebsd || netbsd
package util //nolint:revive,nolintlint
import (
"os"
"syscall"
)
func UID(st os.FileInfo) int {
return int(st.Sys().(*syscall.Stat_t).Uid)
}
func GID(st os.FileInfo) int {
return int(st.Sys().(*syscall.Stat_t).Gid)
}