$ rot13 < example.txt
Cebsrffbe ZpTbantnyy ghearq vagb n png.
$ rot13 < example.txt | rot13
Professor McGonagall turned into a cat.https://github.com/mcandre/go-rotate/releases
https://godoc.org/github.com/mcandre/go-rotate
(None)
- Go 1.11+
- 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/...) - karp (e.g.,
go get github.com/mcandre/karp/...)
$ go get github.com/mcandre/go-rotate/...(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.)
$ mkdir -p $GOPATH/src/github.com/mcandre
$ git clone https://github.com/mcandre/go-rotate.git $GOPATH/src/github.com/mcandre/go-rotate
$ cd "$GOPATH/src/github.com/mcandre/go-rotate"
$ git submodule update --init --recursive
$ go install ./...$ mage test$ mage portKeep the code tidy:
$ mage lint