github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/lang/ipc/ipc_fallback.go (about) 1 //go:build ignore 2 // +build ignore 3 4 //// +build windows plan9 js 5 6 package ipc 7 8 import ( 9 "errors" 10 "net" 11 ) 12 13 var errUnsupported = errors.New("peercred is unsupported on this operating system") 14 15 // Read returns peer credentials using the SO_PEERCRED socket option on 16 // Unix domain sockets. 17 // 18 // On unsupported operating systems it returns an error. 19 func Read(conn *net.UnixConn) (*Cred, error) { 20 return nil, errUnsupported 21 }