Map literals are like struct literals, but the keys are required.

package main 

import "fmt"

type Vertex struct {
Lat, Long float64
} var m = map[string]Vertex {
"Bell Labs": Vertex {
40.6833, -74.39967,
},
"Google": Vertex{
37.42202, -122.08408,
},
} func main() {
fmt.Println(m)
}

最新文章

  1. WebForm Repeater Response以及 地址栏
  2. js小知识归纳(待续)
  3. linux初体验
  4. 使用 jsPlumb 绘制拓扑图 —— 异步加载与绘制的实现
  5. 重装windows7企业版时提示“安装程序无法创建新的系统分区,也无法定位现有系统
  6. 【转】【C#】【Thread】Mutex 互斥锁
  7. ZooKeeper应用场景
  8. The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files
  9. python 装饰器简介
  10. PAT (Advanced Level) 1008. Elevator (20)
  11. C#中 什么是装箱和拆箱
  12. 关于限制DHCP服务器广播的另类方法
  13. Python学习日记:day1
  14. es6属性基础教学,30分钟包会
  15. QUARTZ系列之零:概述
  16. 5、python的变量和常量
  17. 134. Gas Station加油站
  18. [Unity基础]镜头管理类
  19. Linux装python3
  20. exec命令详解

热门文章

  1. [itint5]二叉树转换线索二叉树
  2. jquery.dataTables插件使用例子详解
  3. spring transactionmanager
  4. Consistent Hashing算法-搜索/负载均衡
  5. 编程之美:1.9高效率安排见面会 图的m着色问题 回溯法
  6. 部分常见ORACLE面试题以及SQL注意事项
  7. Rails中的MIME类型
  8. Java面试题-多线程
  9. POJ1182
  10. poj1062