An open API service indexing awesome lists of open source software.

https://github.com/hashload/go-singleton


https://github.com/hashload/go-singleton

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# go-singleton

## Get started
```go
import "github.com/HashLoad/go-singleton"

...

// Set value, value is s generic interface{}
pattern.Singleton.Set("key", "value")

// Get value, value is a generic interface{}
value, err := pattern.Singleton.Get("key")
```