Movatterモバイル変換


[0]ホーム

URL:


header

package
v1.0.5Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2024 License:MITImports:3Imported by:0

Details

Repository

github.com/jf-tech/omniparser

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.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp