header
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeHeader¶
type Header struct {ParserSettingsParserSettings `json:"parser_settings,omitempty"`}
Header contains the common ParserSettings for all schemas.
typeParserSettings¶
type ParserSettings struct {Versionstring `json:"version,omitempty"`FileFormatTypestring `json:"file_format_type,omitempty"`Encoding *string `json:"encoding,omitempty"`}
ParserSettings defines the common header (and its JSON format) for all schemas across all schema handlers.It contains vital information about which handler a schema wants to use, and what file format the inputstream is of (e.g. fixed-length txt, CSV/TSV, XML, JSON, EDI, etc). Optionally, it specifies the expectedencoding scheme for the input streams this schema is used for.
func (ParserSettings)WrapEncoding¶
func (pParserSettings) WrapEncoding(inputio.Reader)io.Reader
WrapEncoding returns an io.Reader that ensures the encoding scheme matches what's specifiedin 'parser_settings.encoding' setting.