Syntax highlighting in README.md
This commit is contained in:
parent
49077d4e04
commit
ff2aec5019
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue