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

Method GetInt

state.go:144–146  ·  view source on GitHub ↗

GetInt retrieves an integer value from the State. It returns the int and a boolean indicating successful type assertion.

(key string)

Source from the content-addressed store, hash-verified

142// GetInt retrieves an integer value from the State.
143// It returns the int and a boolean indicating successful type assertion.
144func (s *State) GetInt(key string) (int, bool) {
145 return GetState[int](s, key)
146}
147
148// GetBool retrieves a boolean value from the State.
149// It returns the bool and a boolean indicating successful type assertion.

Callers 2

TestState_GetIntFunction · 0.80
BenchmarkState_GetIntFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestState_GetIntFunction · 0.64
BenchmarkState_GetIntFunction · 0.64