1
0
Fork 0
mirror of https://github.com/imjasonh/appengine-value synced 2026-07-06 22:12:22 +00:00
This commit is contained in:
Jason Hall 2014-05-18 16:56:39 -04:00
parent 3859745cd6
commit f1eb035910

View file

@ -24,15 +24,15 @@ import value "github.com/ImJasonH/appengine-value"
func doOAuth(c appengine.Context) {
clientID := value.Get(c, "client_id")
clientSecret := value.Get(c, "client_secret")
// use clientID and clientSecret
// use clientID and clientSecret
}
```
If you have multiple values, you can **batch lookups**:
```
func doOAuth(c appengine.Context) {
m := value.GetMulti(c, "client_id", "client_secret")
// use m["clientID"] and m["clientSecret"]
vals := value.GetMulti(c, "client_id", "client_secret")
// use vals["clientID"] and vals["clientSecret"]
}
```