Provides some convenient API, includes Goid(), GetG() and LocalStorage, which is a goroutine's local storage, just like ThreadLocal in other languages.
MIT License
114
stars
20
forks
source link
NewLocalStorage does not support multiple instance #10
Currently the NewLocalStorage doesn't support multiple instance, because the " type storage struct {
}" is empty, need put one field is the storage struct.
Currently the NewLocalStorage doesn't support multiple instance, because the " type storage struct { }" is empty, need put one field is the storage struct.