TempKey sets a temporary key-value pair, which is being removed on the its first get.
(key string, value interface{})
| 100 | // TempKey sets a temporary key-value pair, which is being removed |
| 101 | // on the its first get. |
| 102 | func (p Problem) TempKey(key string, value interface{}) Problem { |
| 103 | return p.Key(problemTempKeyPrefix+key, value) |
| 104 | } |
| 105 | |
| 106 | // GetTempKey returns the temp value based on "key" and removes it. |
| 107 | func (p Problem) GetTempKey(key string) interface{} { |