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

Method GetInt8

state.go:168–170  ·  view source on GitHub ↗

GetInt8 retrieves an int8 value from the State. It returns the int8 and a boolean indicating successful type assertion.

(key string)

Source from the content-addressed store, hash-verified

166// GetInt8 retrieves an int8 value from the State.
167// It returns the int8 and a boolean indicating successful type assertion.
168func (s *State) GetInt8(key string) (int8, bool) {
169 return GetState[int8](s, key)
170}
171
172// GetInt16 retrieves an int16 value from the State.
173// It returns the int16 and a boolean indicating successful type assertion.

Callers 2

TestState_GetInt8Function · 0.80
BenchmarkState_GetInt8Function · 0.80

Calls

no outgoing calls

Tested by 2

TestState_GetInt8Function · 0.64
BenchmarkState_GetInt8Function · 0.64