package localcontrol import ( "errors" "net" "os" ) var ErrPeerCredentialsUnsupported = errors.New( "localcontrol: peer credentials are unsupported on this platform", ) type peerCredentialSource interface { Supported() bool UID(net.Conn) (uint32, error) } type kernelPeerCredentialSource struct{} func effectiveUID() uint32 { return uint32(os.Geteuid()) }