stat

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result interface {
	fmt.Stringer
	error
	encoding.BinaryMarshaler
	encoding.BinaryUnmarshaler
	Log(fileNum int) string
	Name() string
	IncrRecords()
	IncrDuplicates()
	AddError(err error)
	Records() int64
	ErrorCount() int64
	Errors() []error
	Duplicates() int64
}

func NewResult

func NewResult(fileName string) Result

type Stats

type Stats struct {
	Files      int
	Records    int64
	Errors     int64
	Duplicates int64
}

func NewStats

func NewStats() *Stats

func (*Stats) Merge

func (s *Stats) Merge(result Result)

func (*Stats) String

func (s *Stats) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳