mirror of
https://github.com/jpeletier/koolnova2mqtt.git
synced 2026-01-11 15:11:43 +00:00
renamed bimap constructor
This commit is contained in:
@@ -13,8 +13,8 @@ type BiMap struct {
|
||||
inverse map[interface{}]interface{}
|
||||
}
|
||||
|
||||
// NewBiMap returns a an empty, mutable, biMap
|
||||
func NewBiMap(content map[interface{}]interface{}) *BiMap {
|
||||
// New returns a an empty, mutable, biMap
|
||||
func New(content map[interface{}]interface{}) *BiMap {
|
||||
b := &BiMap{forward: make(map[interface{}]interface{}), inverse: make(map[interface{}]interface{}), immutable: false}
|
||||
if content != nil {
|
||||
for k, v := range content {
|
||||
|
||||
Reference in New Issue
Block a user