https://www.ileopold.cn/posts/ring-buffer/
    S:看了高中同学的博客
    T:学习下循环队列和go
    A:
    1.leetcode 622. 设计循环队列
    2.循环队列的定义,为什么会出现
    3.跑了一下go的代码。之前配置了go环境(安装go语言,设置goroot,idea装了go插件),
    导入的时候有红线报错,直接点击运行,自动下载了依赖,就好了
    interface{} 空接口
    make([]interface{}, capacity) 创建数组
    unsafe.pointer go中unsafe的用法
    atomic.LoadUint64 go中atomic用法
    cas go中cas用法
    R:
    回顾了下java中的cas操作 https://www.jianshu.com/p/ae25eb3cfb5d

    参考资料:
    空接口 http://c.biancheng.net/view/84.html
    go中unsafe https://segmentfault.com/a/1190000017389782
    循环队列 https://zhuanlan.zhihu.com/p/421257005
    较难:
    java基于cas实现的CLQ https://www.cnblogs.com/summerday152/p/14382198.html