Sholud I learn Java sockets first?

Start with the high level API described at the beginning of https://godoc.org/net (that is: net.Dial and net.Listen). The first two code blocks are hopefully enough to get started.

When you run into problems, I’m happy to answer questions. Make sure and include the code you are using (both client and server) and describe your setup. I’m not sure how much Go or networking you already know, so its hard to direct you. When I started playing with these APIs, I ran the client and server on the same machine to avoid problems like firewalls and routing.

2 Likes