Has checks if a key is present in the State. It returns a boolean indicating if the key is present.
(key string)
| 54 | // Has checks if a key is present in the State. |
| 55 | // It returns a boolean indicating if the key is present. |
| 56 | func (s *State) Has(key string) bool { |
| 57 | _, ok := s.Get(key) |
| 58 | return ok |
| 59 | } |
| 60 | |
| 61 | // Delete removes a key-value pair from the State. |
| 62 | func (s *State) Delete(key string) { |