Source file tour/moretypes/exercise-maps.go

     1  //go:build OMIT
     2  
     3  package main
     4  
     5  import (
     6  	"golang.org/x/tour/wc"
     7  )
     8  
     9  func WordCount(s string) map[string]int {
    10  	return map[string]int{"x": 1}
    11  }
    12  
    13  func main() {
    14  	wc.Test(WordCount)
    15  }
    16  

View as plain text