Golang_101's profile picture. Go语言101中文推特官方帐号,英文帐号:@zigo_101。

微信公众号:Go 101 (二维码在这里:https://github.com/golang101/golang101)

本推特帐号主要推送 #Go语言 相关新闻、小细节、技巧和各种优化建议等。目前也时不时推一些非Go语言无关的有趣内容。

Go语言101

@Golang_101

Go语言101中文推特官方帐号,英文帐号:@zigo_101。 微信公众号:Go 101 (二维码在这里:https://github.com/golang101/golang101) 本推特帐号主要推送 #Go语言 相关新闻、小细节、技巧和各种优化建议等。目前也时不时推一些非Go语言无关的有趣内容。

有什么正确性问题?

This post is unavailable.

这不正是性能问题吗?

不是性能原因, coro 不带抢占和并行。rsc 之前就解释的很清楚了,这个原语是很有必要加的。



TapirMD - 下一代内容创作工具。相比Markdown功能更强大。tmd.tapirgames.com 在线试玩:tmd.tapirgames.com/play.html


.

Perfect body control.



某本 #Go语言 书,印象中第一版是这样,不知道最新版是否依然如此?

Golang_101's tweet image. 某本 #Go语言 书,印象中第一版是这样,不知道最新版是否依然如此?

Go 1.22 对传统 for 循环的语义做了改变。此改变有哪些影响?请阅读:go101.org/blog/2024-03-0… #Go语言


全球风速实时图:windy.com


.

When 2 groups of penguins meet on the road, they stop for a short exchange of information. When one of them moves in with the wrong group, a friend goes after him to bring him back🙂🐧🐧🐧



When 2 groups of penguins meet on the road, they stop for a short exchange of information. When one of them moves in with the wrong group, a friend goes after him to bring him back🙂🐧🐧🐧



下面这个循环目前(Go 1.20)将打印出 true: for i, p := 0, (*int)(nil); p == nil; print(p == &i) { p = &i } 很正常不过。不过目前有一个提议将改变 for;; 循环的语义,从而有可能使得此循环从 Go 1.22 开始打印出 false。github.com/golang/go/issu… #Go语言


Go语言101 reposted

Go 1.21 new language features: * new built-in "clear" function github.com/golang/go/issu… * GOEXPERIMENT=loopvar to change for loop semantics github.com/golang/go/issu… * the panic(nil) call causes a *runtime.PanicNilError panic github.com/golang/go/issu… #Golang


和目前中国每个城市中各大商场几乎一毛一样

Old mall footage from the 1990s



此内置 clear 函数将在 Go 1.21 中得到支持。 但是第 3 条将不支持。

#Go语言 可能最早会在 1.20 增加一个新的内置函数:clear。此函数可以用来 1. 清空一个 map 中的所有条目,包括键为 NaN 的条目。 2. 将一个切片中的所有元素置零。 3. 将一个数组指针所指的数组中的所有元素置零。 这将是自 Go语言 发布以来添加的第一个内置函数。 详见:github.com/golang/go/issu…



一个世界各地驾驶视频高清网站:driveandlisten.herokuapp.com


Loading...

Something went wrong.


Something went wrong.