Rename package and update documentation
This commit is contained in:
1 parent
272018cf22
commit
cb19905ec5
4 files changed
+9
-7
No files matched your search
@@ -5,13 +5,13 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/antonlindstrom/pgstore"
|
||||
"gitto.work/shortcut/pgstorex"
|
||||
)
|
||||
|
||||
// ExampleHandler is an example that displays the usage of PGStore.
|
||||
func ExampleHandler(w http.ResponseWriter, r *http.Request) {
|
||||
// Fetch new store.
|
||||
store, err := pgstore.NewPGStore("postgres://user:password@127.0.0.1:5432/database?sslmode=verify-full", []byte("secret-key"))
|
||||
store, err := pgstorex.NewPGStore("postgres://user:password@127.0.0.1:5432/database?sslmode=verify-full", []byte("secret-key"))
|
||||
if err != nil {
|
||||
log.Fatalf(err.Error())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user