Skip to content

Replace DecodeSchema and DecodeSchemaJSON with custom Decoder #8

@bminer

Description

@bminer

Replace DecodeSchema and DecodeSchemaJSON with something like NewSchemaDecoder and NewJSONSchemaDecoder.

I'd like to mirror the JSON decoder API to provide a Buffered() method that returns an io.Reader.

  • func (Decoder) Buffered() bufio.Reader
  • func (Decoder) Decode() (Schema, error)

This makes it clearer that the io.Reader is a buffered reader, and it exposes the buffered but unconsumed contents of the Reader.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions