Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

mcandre/go-swatch

Repository files navigation

go-swatch - a Go port of Internet Time AKA Swatch Beats

EXAMPLE

$ swatch
@721.48

DOWNLOAD

https://github.com/mcandre/go-swatch/releases

DOCUMENTATION

https://godoc.org/github.com/mcandre/go-swatch

RUNTIME REQUIREMENTS

(None)

BUILDTIME REQUIREMENTS

  • Go 1.11+

Recommended

  • Docker
  • 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)
  • goxcart (e.g., github.com/mcandre/goxcart/...)
  • zipc (e.g. go get github.com/mcandre/zipc/...)

INSTALL FROM REMOTE GIT REPOSITORY

$ go get github.com/mcandre/go-swatch/...

(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/go-swatch.git $GOPATH/src/github.com/mcandre/go-swatch
$ cd "$GOPATH/src/github.co/mcandre/go-swatch"
$ git submodule update --init --recursive
$ go install ./...

TEST

$ mage test

PORT

$ mage port

LINT

Keep the code tidy:

$ mage lint