You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import (
"context""github.com/egorgasay/itisadb-go-sdk""log"
)
// main to run this test, itisadb must be run on :8888.funcmain() {
ctx:=context.TODO()
db:=itisadb.New(ctx, ":8888").Unwrap()
db.SetOne(ctx, "qwe", "111").Unwrap()
ifx:=db.GetOne(ctx, "qwe").Unwrap().Value; x!="111" {
log.Fatal("Wrong value")
} else {
log.Println("Value:", x)
}
}