database-go icon indicating copy to clipboard operation
database-go copied to clipboard

Go client for Repl.it Database

Repl.it Database Go client

PkgGoDev

The easiest way to use Repl.it Database from your Go repls. Try it out on Repl.it!

package main

import (
  "fmt"
  "github.com/replit/database-go"
)

func main() {
  database.Set("key", "value")
  val, _ := database.Get("key")
  fmt.Println(val)
  // Output: value
}

View the docs for more info about how to use the client to interact with Database.