exercism/go/word-count/README.md

28 lines
598 B
Markdown
Raw Normal View History

2016-08-13 23:20:14 +00:00
# Word Count
Write a program that given a phrase can count the occurrences of each word in that phrase.
For example for the input `"olly olly in come free"`
```plain
olly: 2
in: 1
come: 1
free: 1
```
To run the tests simply run the command `go test` in the exercise directory.
If the test suite contains benchmarks, you can run these with the `-bench`
flag:
go test -bench .
For more detailed info about the Go track see the [help
page](http://exercism.io/languages/go).
## Source
This is a classic toy problem, but we were reminded of it by seeing it in the Go Tour. [view source]()