Meirong.dev
  • Menu ▾
    • Home
    • Post
    • Resume
    • Talk
    • Timeslot
    • About
  • Home
  • Post
  • Resume
  • Talk
  • Timeslot
  • About

Golang1.21的package初始化顺序变更

2023-10-30
#golang  #go1.21 

Go1.21 之前 package 初始化并没有明确地规定,1.21 中明确了 package 初始化的顺序,避免了依赖 init 函数顺序的不确定性。

[Read more]

Golang1.20新特性 multi errors

2023-10-13
#golang  #go1.20 

Go1.20 官方终于支持 multi errors(多错误包装),可以从第三方库切换到官方库,本文介绍 errors.Join 和 fmt.Errorf 的多 %w 用法。

[Read more]

Golang 1.20-arena内存管理

2023-10-11
#golang  #go1.20 

Arena 是 Go1.20 一个提升内存管理效率的实验性包,虽然目前不推荐在生产上使用,但对性能要求较高的场景提供了一种新的内存分配方式。

[Read more]

Golang 1.20语言特性更新

2023-10-01
#golang  #go1.20 

探索 Go1.20 语言特性更新,包括 slice 转 array、comparable 接口放宽、多错误包装等新特性。

[Read more]
< [Newer]
© 2026 Powered by Hugo :: Theme made by panr