Files
QSfera/vendor/github.com/cevaris/ordered_map/key_pair.go
T
2023-04-19 20:24:34 +02:00

16 lines
281 B
Go

package ordered_map
import "fmt"
type KVPair struct {
Key interface{}
Value interface{}
}
func (k *KVPair) String() string {
return fmt.Sprintf("%v:%v", k.Key, k.Value)
}
func (kv1 *KVPair) Compare(kv2 *KVPair) bool {
return kv1.Key == kv2.Key && kv1.Value == kv2.Value
}