Syntax highlighting in README.md

This commit is contained in:
Bruno Bigras 2015-09-13 15:14:50 -04:00
parent 49077d4e04
commit ff2aec5019
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
```go
// Fetch new store.
store := NewPGStore("postgres://user:password@127.0.0.1:5432/database?sslmode=verify-full", []byte("secret-key"))
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 {
t.Fatalf("Error saving session: %v", err)
}
```
## Thanks