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

Method Set

state.go:36–38  ·  view source on GitHub ↗

Set sets a key-value pair in the State.

(key string, value any)

Source from the content-addressed store, hash-verified

34
35// Set sets a key-value pair in the State.
36func (s *State) Set(key string, value any) {
37 s.dependencies.Store(key, value)
38}
39
40// Get retrieves a value from the State.
41func (s *State) Get(key string) (any, bool) {

Callers 1

setServiceMethod · 0.95

Calls 1

StoreMethod · 0.80

Tested by

no test coverage detected