An enigma machine written in Go
Let Go clone the repo into the correct directory:
$ go get github.com/DenBeke/CodingTheory
You can also Git clone the repo, but then you need to manually set the correct path.
Repo should be cloned in $GOPATH/src/github.com/DenBeke/CodingTheory
.
Build:
$ go build
Run:
$ ./GoEnigma input.json
Unit tests depend on GoConvey, so install the dependencies first:
$ go get github.com/smartystreets/goconvey
$ go get github.com/smartystreets/assertions
Run the unit tests
$ go test ./... -v
Always format the code before you commit/push!
$ gofmt -l -w .