An open API service indexing awesome lists of open source software.

https://github.com/teodev1611/darth-db

A tiny database for the Dark Side
https://github.com/teodev1611/darth-db

database golang golang-library golang-module golang-package help-wanted

Last synced: 4 months ago
JSON representation

A tiny database for the Dark Side

Awesome Lists containing this project

README

          








The Darth Database for the Dark Side




## 🤔 What is that?

This is a tiny database for small projects using many formats inspired in **lowdb**

## 💻 How install?

```
go get github.com/TeoDev1611/darth-db
```

## Examples 👌

Write a json database with the data:

```go
package main

import (
"github.com/TeoDev1611/darth-db/json"
)

func main() {
data := map[string]interface{}{
"database": "darth-db",
"awesome": true,
"easy": true,
"description": "A little db for the dark side",
}
json.WriteDB("sampledb.json", " ", false, data)
}
```

## 💁 Todo

- [x] Write Json Files
- [x] Parse String to Map String interface
- [x] Get all data from the json
- [x] Get a single value of the json
- [x] Support for toml
- [ ] Encrypt function
- [x] Examples
- [ ] Support for Yaml

## ✅ Authors

Special thanks to [GolangUA](https://github.com/GolangUA/gopher-logos) and [Red Panda](http://panda-art.red/) for this beautiful illustration 🤟.
Project made by @TeoDev1611