Merge pull request #15 from brunoqc/patch-1
Syntax highlighting in README.md
This commit is contained in:
commit
e89b6e26f7
|
@ -14,6 +14,7 @@ See http://www.gorillatoolkit.org/pkg/sessions for full documentation on underly
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
```go
|
||||||
// Fetch new store.
|
// Fetch new store.
|
||||||
store := NewPGStore("postgres://user:password@127.0.0.1:5432/database?sslmode=verify-full", []byte("secret-key"))
|
store := NewPGStore("postgres://user:password@127.0.0.1:5432/database?sslmode=verify-full", []byte("secret-key"))
|
||||||
defer store.Close()
|
defer store.Close()
|
||||||
|
@ -39,6 +40,7 @@ See http://www.gorillatoolkit.org/pkg/sessions for full documentation on underly
|
||||||
if err = sessions.Save(req, rsp); err != nil {
|
if err = sessions.Save(req, rsp); err != nil {
|
||||||
t.Fatalf("Error saving session: %v", err)
|
t.Fatalf("Error saving session: %v", err)
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Thanks
|
## Thanks
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue