package
Version:
v0.0.0-...-c470439
Opens a new window with list of versions in this module.
Published: Dec 28, 2019
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package word provides functions for handling word queries in a string
Count returns the total word count of the provided string
package main
import (
"fmt"
"github.com/preslavmihaylov/learn-golang/ninja-level-13/ex02/word"
)
func main() {
fmt.Println(word.Count("one two three"))
}
Output:
3
UseCount returns a map representing the word occurences for each word in the provided string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.