Splendid! Thanks Justin! Thanks Dave! I was doing it wrong l, err := net.Listen("unix", "/tmp/lablock") which as Justin said should be l, err := net.ListenUnix("unix", &net.UnixAddr{Name: "@/tmp/lablock", Net: "unix"}).
BTW @ was very handy! But it should be at start of the whole file path, not file name. It works great and even if I don't call l.Close() explicitly (i.e. panic), the socket gets freed! On Thursday, October 6, 2016 at 8:34:52 AM UTC+3:30, Dave Cheney wrote: > > It's a Linux thing, Google abstract domain socket. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.