contrib/recipes/key.go
func newEphemeralKV(s *concurrency.Session, key, val string) (*EphemeralKV, error) {
	k, err := newKV(s.Client(), key, val, s.Lease())
	if err != nil {
		return nil, err
	}
	return &EphemeralKV{*k}, nil
}
func newEphemeralKV(s *concurrency.Session, key, val string) (*EphemeralKV, error) {
	k, err := newKV(s.Client(), key, val, s.Lease())
	if err != nil {
		return nil, err
	}
	return &EphemeralKV{*k}, nil
}
func newEphemeralKV ( s * concurrency . Session , key , val string ) ( * EphemeralKV , error ) { k , err := newKV ( s . Client ( ) , key , val , s . Lease ( ) ) if err != nil { return nil , err } return & EphemeralKV { * k } , nil }
// newEphemeralKV creates a new key/value pair associated with a session lease
newEphemeralKV creates a new key / value pair associated with a session lease