mirror of
https://github.com/imjasonh/appengine-value
synced 2026-07-06 22:12:22 +00:00
align
This commit is contained in:
parent
3859745cd6
commit
f1eb035910
1 changed files with 3 additions and 3 deletions
|
|
@ -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"]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue