Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

davipatricio/database-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

database-go

A simple key-value database for simple projects.

Install

$ go get github.com/davipatricio/database-go

Usage

package main

import (
    "fmt"

    "github.com/davipatricio/database-go"
)

func main() {
    db := database.New("mydatabase.json")
    db.Load()

    db.Set("key", "value")
    db.Save()

    value := db.Get("key")
    fmt.Println(db.Get("key"))

    db.Delete("key")
    db.Save()
}

License

MIT