Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 498 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 498 Bytes

Run

Execute from the command line to run the program:

go run main.go -f sample.txt

where -f - the file name to check the anagrams(sample.txt uses by default, so you can just run: go run main.go)

To run the program on a text file containing over 466k English words use words.txt as a file name argument: -f words.txt

If you need an executable, build it with:

go build

and then run with:

./anagrams -f words.txt

Test

To test the program:

go test -v