Official godoc documentation (with examples) can be found at the Package Registry.
go get -u github.com/x-ethr/pgmain.go
package main
import (
"fmt"
"github.com/x-ethr/pg"
)
func main() {
ctx, level := context.Background(), slog.LevelInfo
uri := pg.DSN()
connection, e := database.Connection(ctx, uri)
if e != nil {
panic(e)
}
}- Please refer to the code examples for additional usage and implementation details.
- See https://pkg.go.dev/github.com/x-ethr/environment for additional documentation.
See the Contributing Guide for additional details on getting started.