MCPcopy Create free account
hub / github.com/supabase/auth / readJSON

Method readJSON

internal/conf/confload/loader.go:263–272  ·  view source on GitHub ↗
(r io.Reader, dst map[string]string)

Source from the content-addressed store, hash-verified

261}
262
263func (o *Loader) readJSON(r io.Reader, dst map[string]string) error {
264 data, err := io.ReadAll(r)
265 if err != nil {
266 return fmt.Errorf("ReadJSON: %w", err)
267 }
268 if err := json.Unmarshal(data, &dst); err != nil {
269 return fmt.Errorf("ReadJSON: %w", err)
270 }
271 return nil
272}
273
274func (o *Loader) readDotenv(r io.Reader, dst map[string]string) error {
275 m, err := godotenv.Parse(r)

Callers 1

readFileMethod · 0.95

Calls 1

UnmarshalMethod · 0.45

Tested by

no test coverage detected