diff options
Diffstat (limited to 'pkg/cache/storage.go')
-rw-r--r-- | pkg/cache/storage.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/cache/storage.go b/pkg/cache/storage.go new file mode 100644 index 0000000..c5b273b --- /dev/null +++ b/pkg/cache/storage.go @@ -0,0 +1,15 @@ +package cache + +var data map[string]interface{} + +func Init(){ + data = make(map[string]interface{}) +} + +func Put(key string, value interface{}) { + data[key] = value +} + +func Get(key string) interface{} { + return data[key] +} |