Skip to content

Details

This code lab demonstrates network programming with Go.
The final goal is to build a "whispernet": a peer to peer mesh network for transmitting text messages.

Pre-requisites (https://talks.godoc.org/github.com/campoy/whispering-gophers/talk.slide#4):

You must have these tools installed and working:

This is not an introduction to the Go Programming Language;
some experience writing Go code is required. To learn Go:

  • Take A Tour of Go
  • Check out the Go documentation
    Create a workspace (see golang.org/doc/code.html) and install the support libraries:

Creating a workspace: (https://talks.godoc.org/github.com/campoy/whispering-gophers/talk.slide#5)
To write Go code you need a workspace. Create one now if you have not already.
$ mkdir $HOME/gocode
$ export GOPATH=$HOME/gocode # or add this to ~/.profile

Build and install a hello example program:
$ go get github.com/campoy/whispering-gophers/hello

This installs the hello binary to $GOPATH/bin.
Check that this worked:
$ $GOPATH/bin/hello
It works!

If you have problems with setup please reach us before the workshop
@tenmozes in telegram, golang ua slack or gmail

Related topics

You may also like