safe

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dict

type Dict struct {
	*sync.RWMutex
	// contains filtered or unexported fields
}

func NewDict

func NewDict() *Dict

func (*Dict) Data

func (d *Dict) Data() map[string]interface{}

func (*Dict) Delete

func (d *Dict) Delete(key string) (interface{}, bool)

func (*Dict) Get

func (d *Dict) Get(key string) (interface{}, bool)

func (*Dict) GetOrPut

func (d *Dict) GetOrPut(key string, value interface{}) (interface{}, bool)

func (*Dict) GetOrPutFunc

func (d *Dict) GetOrPutFunc(key string, f func(string) (interface{}, error)) (interface{}, bool)

func (*Dict) Len

func (d *Dict) Len() int

func (*Dict) Put

func (d *Dict) Put(key string, value interface{}) (interface{}, bool)

Jump to

Keyboard shortcuts

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