Golang api clinet

Hi
Does the golang api client for consul kv support and import and export entire consul kv values?

Hello,

The Go API client does not explicitly provide KV import or export helper methods. However, this is relatively trivial to implement using the api/kv client.

See command/kv/imp/kv_import.go and command/kv/exp/kv_export.go for examples of how the CLI uses the KV API to provide this functionality.

I hope this helps. Let me know if I can provide any additional detail.

1 Like