package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Aug 9, 2019
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 6
Opens a new window with list of known importers.
Documentation
¶
Map represents a bi-directional map
func NewMap(defaultA, defaultB interface{}) *Map
NewMap builds a new *Map
func (m *Map) A(b interface{}) interface{}
A retrieves a based on b
func (m *Map) B(a interface{}) interface{}
B retrieves b based on a
func (m *Map) InA(a interface{}) (ok bool)
InA checks whether a exists
func (m *Map) InB(b interface{}) (ok bool)
InB checks whether b exists
func (m *Map) Set(a, b interface{}) *Map
Set sets a key/value couple
Source Files
¶
Click to show internal directories.
Click to hide internal directories.