Skip to content

Commit ff4e158

Browse files
committed
2022-06-12 第 148 期
1 parent 7f55a9d commit ff4e158

File tree

3 files changed

+157
-1
lines changed

3 files changed

+157
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
## 2022
1212

13-
**六月**[147](docs/issue-147.md) :high_brightness:
13+
**六月**[148](docs/issue-148.md) :high_brightness: | [第 147 期](docs/issue-147.md)
1414

1515
**五月**[第 146 期](docs/issue-146.md) | [第 145 期](docs/issue-145.md) | [第 144 期](docs/issue-144.md) | [第 143 期](docs/issue-143.md) | [第 142 期](docs/issue-142.md)
1616

docs/imgs/issue148/cover.jpeg

107 KB
Loading

docs/issue-148.md

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
# Go语言爱好者周刊:第 148 期
2+
3+
这里记录每周值得分享的 Go 语言相关内容,周日发布。本周刊开源(GitHub:[polaris1119/golangweekly](https://github.com/polaris1119/golangweekly)),欢迎投稿,推荐或自荐文章/软件/资源等,请[提交 issue](https://github.com/polaris1119/golangweekly/issues)
4+
5+
鉴于一些人可能没法坚持把英文文章看完,因此,周刊中会尽可能推荐优质的中文文章。优秀的英文文章,我们的 GCTT 组织会进行翻译。
6+
7+
![](imgs/issue148/cover.jpeg)
8+
9+
题图:Go 在 GitHub 上超过了 100000 颗星星,值得庆祝这一里程碑!
10+
11+
## 刊首语
12+
13+
上期的题目,真的惨不忍睹!
14+
15+
以下代码输出什么?
16+
17+
```go
18+
package main
19+
20+
import (
21+
"fmt"
22+
)
23+
24+
func main() {
25+
var nums1 []interface{}
26+
nums2 := []int{1, 3, 4}
27+
nums3 := append(nums1, nums2...)
28+
fmt.Println(len(nums3))
29+
}
30+
```
31+
32+
A:3;B:1;C:4;D:编译失败
33+
34+
正确答案是 D,编译失败,只有 15% 的人做对了。看到错误信息应该知晓为什么了:
35+
36+
```bash
37+
cannot use nums2 (variable of type []int) as type []interface{} in argument to append
38+
```
39+
40+
看下本期的题目。以下代码输出什么?
41+
42+
```go
43+
package main
44+
45+
import (
46+
"fmt"
47+
)
48+
49+
func main() {
50+
m := [...]int{
51+
'a': 1,
52+
'b': 2,
53+
'c': 3,
54+
}
55+
m['a'] = 3
56+
fmt.Println(len(m))
57+
}
58+
```
59+
60+
A:3;B:4;C:100;D:编译失败
61+
62+
## 资讯
63+
64+
1、[Go1.19 Beta1 发布](https://tip.golang.org/doc/go1.19)
65+
66+
这是基本完成了的 Release Notes。
67+
68+
2、[fyne 2.2.0 发布](https://github.com/fyne-io/fyne)
69+
70+
基于 Material Design 的 Go 跨平台 GUI。
71+
72+
3、[HugoConf 大会](https://hugoconf.io/)
73+
74+
会议在 7 月 8、9 两天进行,在线免费会议。
75+
76+
4、[ddosify 0.8 发布](https://github.com/ddosify/ddosify)
77+
78+
Go 实现的高性能压测工具。
79+
80+
5、[SFTPGo 2.3.0 发布](https://github.com/drakkan/sftpgo)
81+
82+
Go 实现的功能齐全的 SFTP 服务器。
83+
84+
6、[regexp 性能提升](https://github.com/golang/go/commit/0293c51bc5d8ca0728913c4b7f9f92339f8fd9a6)
85+
86+
在 Go1.19 中体现。
87+
88+
## 文章
89+
90+
1、[提高效率的 5 个 GoLand 快捷键,你都知道吗?](https://mp.weixin.qq.com/s/5-ebv0lxEM8ZMiOXYYPsoQ)
91+
92+
分享一些预定义的按键映射供您选择,并介绍几个必备快捷键用法。只需要记住这 5 个基本的快捷键操作,就能有事半功倍的效果。
93+
94+
2、[PHP 跌出前 10,Go 机会来了?6 月 TIOBE 榜单](https://mp.weixin.qq.com/s/DlvMClQorruvF0FetDdl4w)
95+
96+
TIOBE 出炉了 2022 年 6 月份的编程语言趋势榜单。
97+
98+
3、[使用BPF, 将Go网络程序的吞吐提升8倍](https://colobu.com/2022/06/05/use-bpf-to-make-the-go-network-program-8x-faster/)
99+
100+
经典的bpf(classical Berkeley Packet Filter) 是非常好用的一个技术,在一些特殊的Go底层网络编程的场合,可以很好的提高性能。
101+
102+
4、[Go 官方调查变频繁了:6 月份开启新的调查,参与下吧](https://mp.weixin.qq.com/s/8zJQTIClQL7DaEnItdUlHg)
103+
104+
Go 不断提升。
105+
106+
5、[Gopher 应该记住这 10 个命令](https://mp.weixin.qq.com/s/UIeIBtC9MZJh3w-EphWHiA)
107+
108+
Go 最近真的起飞了。越来越多的公司采用它,开发人员也普遍接受它,因为它易于学习,功能强大。
109+
110+
## 开源项目
111+
112+
1、[mo](https://github.com/samber/mo)
113+
114+
一个为函数式编程爱好者准备的,基于泛型构建。
115+
116+
2、[garr](https://github.com/line/garr)
117+
118+
高性能、线程安全、无锁的 Go 数据结构。
119+
120+
3、[SyMon](https://github.com/dhamith93/SyMon)
121+
122+
简单的系统监控和报警系统。
123+
124+
4、[gofound](https://github.com/newpanjing/gofound)
125+
126+
go语言全文检索引擎,毫秒级查询。
127+
128+
## 资源&&工具
129+
130+
1、[benthos](https://github.com/benthosdev/benthos)
131+
132+
流处理。
133+
134+
2、[gta](https://github.com/digitalocean/gta)
135+
136+
通过传递分析快速找到依赖关系发生变化的包。
137+
138+
3、[durationlint](https://github.com/vigliag/durationlint)
139+
140+
专门针对 time.Duration 的 lint。
141+
142+
4、[rain](https://github.com/cenkalti/rain)
143+
144+
一个 BitTorrent 客户端。
145+
146+
5、[Kratos](https://github.com/ory/kratos)
147+
148+
云原生身份和用户管理系统
149+
150+
## 订阅
151+
152+
这个周刊每周日发布,同步更新在[Go语言中文网](https://studygolang.com/go/weekly)[微信公众号](https://weixin.sogou.com/weixin?query=Go%E8%AF%AD%E8%A8%80%E4%B8%AD%E6%96%87%E7%BD%91)
153+
154+
微信搜索"Go语言中文网"或者扫描二维码,即可订阅。
155+
156+
![wechat](imgs/wechat.png)

0 commit comments

Comments
 (0)