import ( "github.com/cockroachdb/cockroach/proto" ) // create a key for a table row key := proto.Key("/mytable/myrow")
import ( "github.com/cockroachdb/cockroach/proto" ) // create a key for a table row key := proto.Key("/mytable/myrow") // encode the key as a byte slice encodedKey := key.Encode()
import ( "github.com/cockroachdb/cockroach/proto" ) // create a byte slice containing an encoded key encodedKey := []byte{1, 2, 3, 4} // decode the key into a proto.Key object key, err := proto.DecodeKey(encodedKey) if err != nil { panic(err) }The package library for github.com.cockroachdb.cockroach.proto Key is located in the "proto" package.