国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

Go | golang 1.8 is released

2019-11-08 02:37:21
字體:
來源:轉載
供稿:網友

Go | golang 1.8 is released


今天打開golang.org,驚喜發現golang 1.8發布了,果斷切換到1.8的開發環境。以下內容摘錄自官網


語言方面改變

When explicitly converting a value from one struct type to another, as of Go 1.8 the tags are ignored. Thus two structs that differ only in their tags may be converted from one to the other:

func example() { type T1 struct { X int `json:"foo"` } type T2 struct { X int `json:"bar"` } var v1 T1 var v2 T2 v1 = T1(v2) // now legal}

The language specification now only requires that implementations support up to 16-bit exponents in floating-point constants. This does not affect either the “gc” or gccgo compilers, both of which still support 32-bit exponents.

如果兩個結構體只有tag信息是不一樣的,可以直接強制轉換。


GC STW時間比1.7有所優化

Garbage collection pauses should be significantly shorter than they were in Go 1.7, usually under 100 microseconds and often as low as 10 microseconds. See the document on eliminating stop-the-world stack re-scanning for details. More work remains for Go 1.9.

10us級別的STW,爽!


更多信息請參考https://golang.org/doc/go1.8


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 鄂尔多斯市| 昌黎县| 开化县| 清镇市| 葵青区| 屯门区| 雷波县| 贡山| 澄迈县| 鄢陵县| 萨嘎县| 武乡县| 巴东县| 视频| 上虞市| 酉阳| 库伦旗| 洛宁县| 孟津县| 九台市| 莆田市| 黄山市| 四会市| 宜黄县| 营口市| 航空| 新建县| 两当县| 双牌县| 承德县| 嵩明县| 南城县| 南投市| 延寿县| 钟山县| 河西区| 岚皋县| 东源县| 阳新县| 枣庄市| 贺兰县|