From faf85f602b40c06486181eda15cff2a7664f2fda Mon Sep 17 00:00:00 2001 From: Christoph Zauner Date: Mon, 3 Oct 2016 08:24:04 +0000 Subject: [PATCH] Add info about return values for function Get(). --- api/kv.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/kv.go b/api/kv.go index 2b93fa8539..5262243a17 100644 --- a/api/kv.go +++ b/api/kv.go @@ -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 {