MCPcopy Create free account
hub / github.com/brimdata/super / ParseReader

Function ParseReader

compiler/parser/parser.go:24532–24539  ·  view source on GitHub ↗

ParseReader parses the data from r using filename as information in the error messages.

(filename string, r io.Reader, opts ...Option)

Source from the content-addressed store, hash-verified

24530// ParseReader parses the data from r using filename as information in the
24531// error messages.
24532func ParseReader(filename string, r io.Reader, opts ...Option) (any, error) {
24533 b, err := io.ReadAll(r)
24534 if err != nil {
24535 return nil, err
24536 }
24537
24538 return Parse(filename, b, opts...)
24539}
24540
24541// Parse parses the data from b using filename as information in the
24542// error messages.

Callers 1

ParseFileFunction · 0.85

Calls 2

ReadAllMethod · 0.80
ParseFunction · 0.70

Tested by

no test coverage detected