weakmap

package
v0.0.0-...-dddd691 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Author: Zwei.Ren

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyMap

func CopyMap(from Map, to map[interface{}]interface{})

func Keys

func Keys(m Map) []interface{}

func StringKeys

func StringKeys(m Map) []string

func Values

func Values(m Map) []interface{}

Types

type Map

type Map interface {
	Load(key interface{}) (value interface{}, ok bool)
	Store(key, value interface{})
	LoadOrStore(key, value interface{}) (actual interface{}, loaded bool)
	Delete(key interface{})
	Range(f func(key, value interface{}) bool)
}

func NewSyncMap

func NewSyncMap() Map

func NewWeakMap

func NewWeakMap(limit int) Map

Jump to

Keyboard shortcuts

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