ThreadLocal for Golang.
-
Updated
May 5, 2025 - Go
ThreadLocal for Golang.
Provides some convenient API, includes Goid(), GetG() and LocalStorage, which is a goroutine's local storage, just like ThreadLocal in other languages.
id generator, which generates globally unique id. Lockless generation. mini Snowflake. 无锁分布式ID生成器
Add a description, image, and links to the goid topic page so that developers can more easily learn about it.
To associate your repository with the goid topic, visit your repo's landing page and select "manage topics."