github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/internal/examples/collection/mutable/map.go (about) 1 package mutable 2 3 import ( 4 "github.com/m4gshm/gollections/collection/mutable" 5 "github.com/m4gshm/gollections/collection/mutable/map_" 6 "github.com/m4gshm/gollections/k" 7 ) 8 9 var ( 10 _ *mutable.Map[int, string] = map_.Of(k.V(1, "1"), k.V(2, "2"), k.V(3, "3")) 11 _ *mutable.Map[int, string] = mutable.NewMapOf(map[int]string{1: "2", 2: "2", 3: "3"}) 12 )