Merge pull request #56 from zemirco/patch-1
[docs] Fixed syntax error in docs for struct initialization
This commit is contained in:
commit
f7261893ca
1 changed files with 1 additions and 1 deletions
2
doc.go
2
doc.go
|
@ -135,7 +135,7 @@ a need to type-assert data when retrieving it. We'll use the Person struct we re
|
|||
|
||||
// Retrieve our struct and type-assert it
|
||||
val := session.Values["person"]
|
||||
var person &Person{}
|
||||
var person = &Person{}
|
||||
if person, ok := val.(*Person); !ok {
|
||||
// Handle the case that it's not an expected type
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue