pattern

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 2 Imported by: 0

README

go-singleton

Get started

    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")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Singleton

func Singleton() *singleton

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL