vmap

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: LGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

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

Map is just a versioned map :) Any change to it increments its version by 1.

Not thread-safe.

func New

func New(m map[string]string) *Map

func (Map) Get

func (m Map) Get(k string) (string, bool)

func (*Map) Put

func (m *Map) Put(k, v string)

func (*Map) Values

func (m *Map) Values() map[string]string

func (*Map) Version

func (m *Map) Version() int

Jump to

Keyboard shortcuts

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