{"id":17497086,"url":"https://github.com/ccding/go-leveldb","last_synced_at":"2025-03-28T18:43:52.160Z","repository":{"id":71972153,"uuid":"264303347","full_name":"ccding/go-leveldb","owner":"ccding","description":"A Go wrapper for LevelDB","archived":false,"fork":false,"pushed_at":"2020-05-16T19:07:14.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T19:31:44.117Z","etag":null,"topics":["go","golang","leveldb","wrapper"],"latest_commit_sha":null,"homepage":"https://github.com/google/leveldb","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ccding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-15T21:33:30.000Z","updated_at":"2021-09-17T21:42:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"667b8a33-4860-4ee9-a6eb-3e073ac055c9","html_url":"https://github.com/ccding/go-leveldb","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccding%2Fgo-leveldb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccding%2Fgo-leveldb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccding%2Fgo-leveldb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccding%2Fgo-leveldb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccding","download_url":"https://codeload.github.com/ccding/go-leveldb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246083048,"owners_count":20720900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","leveldb","wrapper"],"created_at":"2024-10-19T15:10:23.352Z","updated_at":"2025-03-28T18:43:52.138Z","avatar_url":"https://github.com/ccding.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-leveldb\n=======\n\n[![Build Status](https://travis-ci.org/ccding/go-leveldb.svg?branch=master)](https://travis-ci.org/ccding/go-leveldb)\n[![License](https://img.shields.io/badge/License-Apache%202.0-red.svg)](https://opensource.org/licenses/Apache-2.0)\n[![GoDoc](https://godoc.org/github.com/ccding/go-leveldb?status.svg)](http://godoc.org/github.com/ccding/go-leveldb/leveldb)\n\ngo-leveldb is a Go wrapper for [LevelDB](https://github.com/google/leveldb)\n\n## Building\n\nYou can run `make` to build this library. It will download and compile\n`leveldb` and `snappy`, then compile `go-leveldb`.\n\nAlternatively, if you have installed `libleveldb-dev` on your machine, you can\nuse `go build` to compile `go-leveldb`. However, if `libleveldb-dev` is\ninstalled in non-standard folders, you must set `CGO_CFLAGS` and `CGO_LDFLAGS`\nsuch that `cgo` knows the location of `libleveldb-dev`.\n\n## Usage\n\ngo-leveldb supports most functions of leveldb's C API, except those passing\nfunction pointers to the API.\n\nExample code:\n\n```go\nimport \"github.com/ccding/go-leveldb/leveldb\"\n\n// creates a database\ndb, err := leveldb.Open(dir, nil)\n// put and get\nerr = db.Put([]byte(\"foo\"), []byte(\"bar\"), nil)\nval, err := db.Get([]byte(\"foo\"), nil) // returns \"bar\"\n// closes the database\ndb.Close()\n// deletes the database directory\nerr = leveldb.DestroyDB(dir, nil)\n```\n\n\nMore details, please go to [`main.go`](https://github.com/ccding/go-leveldb/blob/master/main.go)\nand [GoDoc](http://godoc.org/github.com/ccding/go-leveldb/leveldb)\n\n## TODO\n\nWrite tests and comments\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccding%2Fgo-leveldb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccding%2Fgo-leveldb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccding%2Fgo-leveldb/lists"}