Merge pull request #15 from brunoqc/patch-1

Syntax highlighting in README.md
This commit is contained in:
Anton Lindström 2015-09-14 07:33:57 +02:00
commit e89b6e26f7
1 changed files with 23 additions and 21 deletions

View File

@ -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