Add info about return values for function Get().

This commit is contained in:
Christoph Zauner 2016-10-03 08:24:04 +00:00
parent 4053bd3dea
commit 79287ef280
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ func (c *Client) KV() *KV {
return &KV{c}
}
// Get is used to lookup a single key
// Get is used to lookup a single key. The returned pointer
// to the KVPair will be nil if the key does not exist.
func (k *KV) Get(key string, q *QueryOptions) (*KVPair, *QueryMeta, error) {
resp, qm, err := k.getInternal(key, nil, q)
if err != nil {