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

Method GetJSON

shared_state.go:132–134  ·  view source on GitHub ↗
(key string, out any)

Source from the content-addressed store, hash-verified

130}
131
132func (s *SharedState) GetJSON(key string, out any) ([]byte, bool, error) { //nolint:gocritic // Keep unnamed returns for clarity.
133 return s.GetJSONWithContext(context.Background(), key, out)
134}
135
136func (s *SharedState) GetJSONWithContext(ctx context.Context, key string, out any) ([]byte, bool, error) { //nolint:gocritic // Keep unnamed returns for clarity.
137 if err := s.ensureStorage(); err != nil {

Calls 1

GetJSONWithContextMethod · 0.95