anagram

module
v0.0.0-...-37e2644 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2021 License: MIT

README

Anagram Finder

Build Version (latest semver) License Go Version

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:

Linux (amd64) Linux (arm64) MacOS (Intel) MacOS (Apple Silicon) Windows (x64)
Download Download Download Download Download

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

Directories

Path Synopsis
cmd
cli
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL