diff options
author | Mirco Zeiss <mirco.zeiss@gmail.com> | 2015-10-02 16:41:35 +0300 |
---|---|---|
committer | Mirco Zeiss <mirco.zeiss@gmail.com> | 2015-10-02 16:41:35 +0300 |
commit | 28bc6170a1cd767d14d2f4728cc6f8e2876e4d1f (patch) | |
tree | 8b1f6240dd30ac42329ee861c76b66058577dd3e | |
parent | b6bcae186ac3099dba8fafce125dc930393f1e5e (diff) |
fix syntax error in docs for complex datatype
-rw-r--r-- | doc.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |