CountWords counts the number of words in the specified string and returns the count.
(text string)
| 6 | // CountWords counts the number of words in the specified |
| 7 | // string and returns the count. |
| 8 | func CountWords(text string) (count int) { |
| 9 | count = len(strings.Fields(text)) |
| 10 | return |
| 11 | } |
nothing calls this directly
no outgoing calls
no test coverage detected