国产探花免费观看_亚洲丰满少妇自慰呻吟_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


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 崇州市| 庆元县| 屏边| 秦安县| 鹤峰县| 辽阳市| 镇宁| 正阳县| 夏邑县| 和龙市| 鹤山市| 云梦县| 阿巴嘎旗| 武功县| 浙江省| 浦东新区| 东至县| 伊吾县| 南安市| 台前县| 盐津县| 太康县| 嵊州市| 万州区| 射洪县| 宝清县| 香河县| 舞阳县| 吉木乃县| 银川市| 大方县| 新营市| 信丰县| 蒙城县| 东兰县| 甘洛县| 九江县| 梧州市| 宁海县| 佛山市| 雅江县|