inout

package
v0.0.0-...-0f28e9b Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFileContent

func ReadFileContent(filename string) ([]byte, error)

Types

type CsvFile

type CsvFile struct {
	// contains filtered or unexported fields
}

func NewCsvFile

func NewCsvFile(cfg *CsvFileConfig) *CsvFile

func (*CsvFile) Close

func (x *CsvFile) Close() error

func (*CsvFile) Exec

func (x *CsvFile) Exec(records ...string) error

type CsvFileConfig

type CsvFileConfig struct {
	Flag      string
	Filename  string
	WriteSize int
}

func NewCsvFileConfig

func NewCsvFileConfig(flag string, filename string, writeSize int) *CsvFileConfig

type WriterFile

type WriterFile struct {
	// contains filtered or unexported fields
}

func NewWriterFile

func NewWriterFile(cfg *WriterFileConfig) *WriterFile

func (*WriterFile) Close

func (x *WriterFile) Close() error

func (*WriterFile) Exec

func (x *WriterFile) Exec(args ...interface{}) (interface{}, error)

type WriterFileConfig

type WriterFileConfig struct {
	// os.O_RDWR|os.O_CREATE|os.O_TRUNC
	// os.O_RDWR|os.O_CREATE|O_APPEND
	Flag      string
	Filename  string
	WriteSize int
}

func NewWriterFileConfig

func NewWriterFileConfig(flag string, filename string, writeSize int) *WriterFileConfig

Jump to

Keyboard shortcuts

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