Browse Source

fix doc.go

Dmitry Bochkarev 13 years ago
parent
commit
989863b11f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      doc.go

+ 2
- 2
doc.go View File

@ -39,8 +39,8 @@ The application can later access the variable using the same key you provided:
// val is "bar".
val := context.Get(r, foo.MyKey)
// returns true
ok := context.Has(r, foo.MyKey)
// returns ("bar", true)
val, ok := context.GetOk(r, foo.MyKey)
// ...
}


Loading…
Cancel
Save