Anagram Finder
This application finds anagrams from a sorted list of strings and prints them to stdout.
Quick Start
Docker
Using Docker you can run the application with a mounted /data
directory (Linux/MacOS/Powershell):
docker run --mount type=bind,src=$(pwd)/data,dst=/data ghcr.io/paulboocock/anagram:latest data/example1.txt
Binaries
A number of binaries are available to download, hosted via GitHub Releases:
Once downloaded, unzip the executable.
Linux/MacOS (update the executable name to match the downloaded version):
./anagram data/example1.txt
Windows:
anagram_windows_amd64.exe data/example1.txt
Maintainer quick start
Requires go
and make
to be installed.
Go: Download
make
is available on Linux and MacOS.
Windows users can install via chocolatey (choco install make
) or use WSL2.
Building
To build the cli application:
make cli
To build the docker container:
make container
Testing
To run all tests:
make test
Linting
To lint all files
make lint