Skip to content

Instantly share code, notes, and snippets.

View abhishekkh's full-sized avatar
🏠
Working from home

Abhishek Hodavdekar abhishekkh

🏠
Working from home
View GitHub Profile
package main
import (
"golang.org/x/tour/wc"
"strings"
)
func WordCount(s string) map[string]int {
m:= make(map[string]int)
words:= strings.Fields(s)