Commits

Miki Tebeka committed 1fd0c1b

Comments

  • Participants
  • Parent commits 9b3182e

Comments (0)

Files changed (1)

 
 const (
 	googleKey    = "your google API key goes here"
-	geonamesUser = "your geonames user"
+	geonamesUser = "your geonames user goes here"
 )
 
 type Location struct {
-	location string
-	lat, lng float64
-	time     string
-	err      error
+	location string  // Location name
+	lat, lng float64 // Place (from Google Maps)
+	time     string  // Time (from geonames)
+	err      error   // Error (if was one)
 }
 
 // parseTimeReply parse the XML returned from geonames, returns the time
 	}
 
 	out := make(chan *Location)
-	// Fill the channel in a different goroutine
+	// Fill the channel with locations
 	go func() {
 		for _, pm := range reply.Placemark {
 			out <- &Location{