github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/kv/api.go (about) 1 // Package kv provides generic key/value pair constructors and helpers 2 package kv 3 4 import "github.com/m4gshm/gollections/c" 5 6 // New creates a key/value pair holder 7 func New[K any, V any](key K, value V) c.KV[K, V] { 8 return c.KV[K, V]{K: key, V: value} 9 }