grpcurl/cmd/grpcurl/unix.go

16 lines
375 B
Go

//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows
// +build darwin dragonfly freebsd linux netbsd openbsd solaris windows
package main
var (
unix = flags.Bool("unix", false, prettify(`
Indicates that the server address is the path to a Unix domain socket.`))
)
func init() {
isUnixSocket = func() bool {
return *unix
}
}