github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/k/v.go (about) 1 // Package k provides the k.V constructor for building key/value pairs 2 package k 3 4 import ( 5 "github.com/m4gshm/gollections/c" 6 "github.com/m4gshm/gollections/kv" 7 ) 8 9 // V is k.V shortening for map_.NewKV 10 func V[k, v any](key k, value v) c.KV[k, v] { 11 return kv.New(key, value) 12 }