mirror of
https://github.com/alexedwards/scs.git
synced 2025-07-11 00:50:14 +02:00
Align indentation in code samples
This commit is contained in:
@ -86,18 +86,18 @@ However, there may be occasions when your use of a session store instance is tra
|
||||
|
||||
```go
|
||||
func TestExample(t *testing.T) {
|
||||
db, err := sql.Open("postgres", "postgres://user:pass@localhost/db")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer db.Close()
|
||||
db, err := sql.Open("postgres", "postgres://user:pass@localhost/db")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer db.Close()
|
||||
|
||||
store := postgresstore.New(db)
|
||||
defer store.StopCleanup()
|
||||
store := postgresstore.New(db)
|
||||
defer store.StopCleanup()
|
||||
|
||||
session = scs.NewSession()
|
||||
session = scs.NewSession()
|
||||
session.Store = store
|
||||
|
||||
// Run test...
|
||||
// Run test...
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user