func page40_Exercise_Maps() { WordCount := func(s string) map[string]int { dict := make(map[string]int) for _, word := range strings.Fields(s) { dict[word] = dict[word] + 1 } return dict } wc.Test(WordCount) }
func main() { wc.Test(WordCount) }
func main() { wc.Test(ContadorPalabras) }
func main() { wc.Test(WordCount) print("\n") }
func main() { mytest := "my test one one two test three two one two" fmt.Println(WordCount(mytest)) wc.Test(WordCount) }
func Exercise3() { wc.Test(wordCount) }