Categorygithub.com/almightyfloppyfish/sfsdb-go
modulepackage
0.0.0-20190520162836-bb8fc58dd6ff
Repository: https://github.com/almightyfloppyfish/sfsdb-go.git
Documentation: pkg.go.dev

# README

Pure-Go implementation of sfsdb


import (
    "github.com/AlmightyFloppyFish/sfsdb-go"
    "fmt"
)

// Must be exported
type User struct {
    Name string
    Id int
}

func main() {
    db := sfsdb.New("db", 10) // Cache up to 10 objects
    user := User { "some_name", 13142 }

    db.Save("some_key", user)

    var retrieved User
    db.Load("some_key", &retrieved)

    fmt.Println(user, "is same as", retrieved)
}

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

New database, Set cache to 0 for uncached database.

# Interfaces

Database .