file

package
v0.2.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Character Format (Fixed or variable blocked)
	CharacterFileFormat = "Character"
	// Packed Format (Variable blocked)
	PackedFileFormat = "Packed"
	// Name of header record
	HeaderRecordName = "header"
	// Name of trailer record
	TrailerRecordName = "trailer"
	// Name of data record
	DataRecordName = "data"
	// data with json format
	JsonData = "json"
	// data with metro format (raw data)
	MetroData = "metro"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	SetRecord(lib.Record) error
	AddDataRecord(lib.Record) error
	GetRecord(string) (lib.Record, error)
	GetDataRecords() []lib.Record
	GeneratorTrailer() (lib.Record, error)

	Parse(record string) error
	String() string
	Validate() error
}

General file interface

func CreateFile

func CreateFile(buf []byte) (File, error)

CreateFile

func NewFile

func NewFile(format string) (File, error)

NewFile constructs a file template.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL