Source file tour/moretypes/map-literals-continued.go

     1  // +build OMIT
     2  
     3  package main
     4  
     5  import "fmt"
     6  
     7  type Vertex struct {
     8  	Lat, Long float64
     9  }
    10  
    11  var m = map[string]Vertex{
    12  	"Bell Labs": {40.68433, -74.39967},
    13  	"Google":    {37.42202, -122.08408},
    14  }
    15  
    16  func main() {
    17  	fmt.Println(m)
    18  }
    19  

View as plain text