maps

package
v0.0.0-...-1023f2c Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(m map[K]V)

func Clone

func Clone(m map[K]V) map[K]V

func Difference

func Difference(dest, src map[K]V) map[K]V

Difference removes all of src's keys from dest and returns dest.

func Intersection

func Intersection(dest, src map[K]V) map[K]V

Intersection keeps the keys in dest that are also in src, removing the others. It returns dest.

func Union

func Union(dest, src map[K]V) map[K]V

Union adds all the entries from src to dest and returns dest. If a key is in dest, its value is overwritten with the value from src.

Types

type K

type K interface {
	generic.Comparable
}

func Keys

func Keys(m map[K]V) []K

type V

type V interface{}

Jump to

Keyboard shortcuts

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