Discover Packages
github.com/caihangui/gls
package
module
Version:
v0.0.0-...-e4fd2b5
Opens a new window with list of versions in this module.
Published: Sep 1, 2020
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
gls
gls is simple lib for goroutine local storage
Expand ▾
Collapse ▴
Documentation
¶
Delete cleans the specific data
DeleteAll cleans all data under current goroutine.
you should call this func when your goroutine exited
to avoid anther goroutine get the dirty data next time.
GetGoroutineID return the current goroutine ID
Load loads the specific data
func Store(key string , val interface{})
Store stores the specific key/val
Source Files
¶
Click to show internal directories.
Click to hide internal directories.