![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Golang
Treasureashes
总有一条非走不可的弯路。
展开
-
Golang 如何得到git repo 的 URL
【代码】Golang 如何得到git repo 的 URL。原创 2023-04-02 23:39:45 · 328 阅读 · 0 评论 -
Golang 如何判断一个podman container是否在running
【代码】Golang 如何判断一个podman container是否在running。原创 2023-04-02 23:37:24 · 142 阅读 · 0 评论 -
Golang 如何不用uuid的包产生一个random的uuid
【代码】Golang 如何不用uuid的包产生一个random的uuid。原创 2023-04-02 23:45:21 · 130 阅读 · 0 评论 -
Golang os.Write 不是 atomic 的
Golang os.Write 不是 atomic 的,在parallel process 中容易产生 write read race。更好的做法是先写到一个temp file里,再os.Rename()原创 2023-04-02 23:29:28 · 97 阅读 · 0 评论