{"id":51025,"library":"etcd-client-v2","title":"etcd client v2","description":"Package client provides bindings for the etcd APIs.","status":"active","version":"2.305.26","language":"go","source_language":null,"source_url":"https://github.com/etcd-io/etcd","tags":["etcd","distributed-systems","key-value","client"],"install":[{"cmd":"go get go.etcd.io/etcd/client/v2","lang":"bash","label":"Install go.etcd.io/etcd/client/v2"}],"dependencies":[],"imports":[{"symbol":"client","correct":"go.etcd.io/etcd/client/v2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"go.etcd.io/etcd/client/v2\"\n)\n\nfunc main() {\n\tcfg := client.Config{\n\t\tEndpoints: []string{\"http://127.0.0.1:2379\"},\n\t}\n\tc, err := client.New(cfg)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tkapi := client.NewKeysAPI(c)\n\tresp, err := kapi.Get(nil, \"/foo\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(resp.Node.Value)\n}","lang":"go","description":"Connect to etcd and get a key's value."},"warnings":[{"fix":"Use go.etcd.io/etcd/client/v3 for new projects.","message":"etcd client v2 is deprecated in favor of client v3.","severity":"breaking","affected_versions":">=3.0"}],"env_vars":null,"search_vec":"'api':11 'bind':7 'client':2,5,19 'distribut':14 'distributed-system':13 'etcd':1,10,12 'key':17 'key-valu':16 'packag':4 'provid':6 'system':15 'v2':3 'valu':18","created_at":"2026-06-15T05:17:43.315473+00:00","updated_at":"2026-06-15T05:17:43.315473+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/etcd-io/etcd","github":"https://github.com/etcd-io/etcd","docs":"https://pkg.go.dev/go.etcd.io/etcd/client/v2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database","networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}