Archiving a bunch of old stuff
This commit is contained in:
18
oldstuff/gotime/gotour-artifacts/maps/main.go
Normal file
18
oldstuff/gotime/gotour-artifacts/maps/main.go
Normal file
@@ -0,0 +1,18 @@
|
||||
// From go-tour #28
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
type Vertex struct {
|
||||
Lat, Long float64
|
||||
}
|
||||
|
||||
var m map[string]Vertex
|
||||
|
||||
func main() {
|
||||
m = make(map[string]Vertex)
|
||||
m["Bell Labs"] = Vertex{
|
||||
40.68433, 74.39967,
|
||||
}
|
||||
fmt.Println(m["Bell Labs"])
|
||||
}
|
Reference in New Issue
Block a user