memo

package
v0.0.0-...-52b1b20 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvAt

func InvAt() int64

Types

type K

type K = interface{}

type M

type M struct {
	// contains filtered or unexported fields
}

func (*M) Clear

func (m *M) Clear()

func (*M) Del

func (m *M) Del(k K)

func (*M) Peek

func (m *M) Peek(k K) V

func (*M) Range

func (m *M) Range(f func(k K, v V))

func (*M) Read

func (m *M) Read(k K, new func() V) V

func (*M) Values

func (m *M) Values() map[K]V

type Sticky

type Sticky interface {
	InvalidateMemo(invAt int64)
}

type V

type V = interface{}

Jump to

Keyboard shortcuts

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