EXAMPLE
$ lissajous >example.gif
(a sinusoidal surprise awaits!)
DOCUMENTATION
https://godoc.org/github.com/mcandre/toys/system/go/lissajous
BUILDTIME REQUIREMENTS
Recommended
- Mage (e.g.,
go get github.com/magefile/mage
)
- goimports (e.g.
go get golang.org/x/tools/cmd/goimports
)
- golint (e.g.
go get github.com/golang/lint/golint
)
- errcheck (e.g.
go get github.com/kisielk/errcheck
)
- nakedret (e.g.
go get github.com/alexkohler/nakedret
)
- shadow (e.g.
go get -u golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
)
INSTALL FROM REMOTE GIT REPOSITORY
$ go get github.com/mcandre/toys/system/go/lissajous/...
(Yes, include the ellipsis as well, it's the magic Go syntax for downloading, building, and installing all components of a package, including any libraries and command line tools.)
INSTALL FROM LOCAL GIT REPOSITORY
$ mkdir -p "$GOPATH/src/github.com/mcandre"
$ git clone https://github.com/mcandre/toys.git "$GOPATH/src/github.com/mcandre/toys"
$ cd "$GOPATH/src/github.com/mcandre/toys/system/go/lissajous"
$ git submodule update --init --recursive
$ go install ./...
TEST
$ mage test
LINT
Keep the code tidy:
$ mage lint