MCPcopy
hub / github.com/gofiber/fiber / Has

Method Has

state.go:56–59  ·  view source on GitHub ↗

Has checks if a key is present in the State. It returns a boolean indicating if the key is present.

(key string)

Source from the content-addressed store, hash-verified

54// Has checks if a key is present in the State.
55// It returns a boolean indicating if the key is present.
56func (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.
62func (s *State) Delete(key string) {

Calls 1

GetMethod · 0.95