美文网首页golang学习
golang的一些点

golang的一些点

作者: 王艳秋1 | 来源:发表于2020-02-03 15:50 被阅读0次

https://tonybai.com/2015/03/09/understanding-import-packages/

select case的用法

context库的用法

随机数发生器的用法

rand.NewSource()

rand.Seed(time.Now().Nanosecond())

rand.IntN(100)

sync.Once的用法

  • Happens-before原则、Observe原则
  • CAS
  • 双重检测

atomic库的用法

golang调试工具delve的一些知识

Installation on macOS

Ensure you have a proper compilation toolchain.

This should be as simple as:

xcode-select --install

Now you can install delve using go get

相关文章

网友评论

    本文标题:golang的一些点

    本文链接:https://www.haomeiwen.com/subject/rpbhxhtx.html