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)
}
-
Notifications
You must be signed in to change notification settings - Fork 1
simvux/sfsdb-go
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple fast database that doesn't get in your way
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published