mirror of
https://github.com/status-im/consul.git
synced 2025-01-13 07:14:37 +00:00
Add info about return values for function Get().
This commit is contained in:
parent
9fc0c0ede2
commit
faf85f602b
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user