csvmgr

package
v0.0.0-...-6bf85cd Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package csvmgr Created by RTT. Author: teocci@yandex.com on 2021-Nov-11

Package csvmgr Created by RTT. Author: teocci@yandex.com on 2021-Aug-30

Package csvmgr Created by RTT. Author: teocci@yandex.com on 2021-Aug-30

Package csvmgr Created by RTT. Author: teocci@yandex.com on 2021-Nov-12

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferFile

func BufferFile(fn string) []byte

func CloseFile

func CloseFile() func(f *os.File)

func CreateFile

func CreateFile(fn string) *os.File

func FlushWriter

func FlushWriter() func(w *bufio.Writer)

func HasError

func HasError(e error, fatal bool, format ...string)

func LineCounter

func LineCounter(fn string) (count int)

func Normalize

func Normalize(f *os.File) bytes.Buffer

func NormalizeJob

func NormalizeJob(fn string) (buffer bytes.Buffer)

func OpenFile

func OpenFile(fn string) *os.File

func OpenReader

func OpenReader(fn string) (*csv.Reader, *os.File)

func OpenUTFFile

func OpenUTFFile(fn string) utfmgr.UTFReadCloser

func UTFBufferFile

func UTFBufferFile(fn string) []byte

Types

type CSVLogger

type CSVLogger struct {
	LogFile   *os.File
	LogWriter *bufio.Writer
	// Buffered channel of outbound messages.
	Append    chan []byte
	Done      chan struct{}
	Interrupt chan os.Signal
}

func NewCSVLogger

func NewCSVLogger(c datamgr.InitConf) *CSVLogger

func (*CSVLogger) Close

func (c *CSVLogger) Close()

Jump to

Keyboard shortcuts

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