reader

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Path int = iota
	Filename
	FilenameSize
	FilenameMod
	FilenameHash
	Hash
)

Variables

This section is empty.

Functions

func Base added in v1.7.13

func Base(path string) string

like filepath.Base but simplified + works with unix or win separators

func Compare

func Compare(w io.Writer, join int, paths ...string) error

Types

type File

type File struct {
	Path string
	Size int64
	Mod  time.Time
	Hash []byte
	Err  error
	IDs  []core.Identification
}
type Head struct {
	ResultsPath   string
	SignaturePath string
	Scanned       time.Time
	Created       time.Time
	Version       [3]int
	Identifiers   [][2]string
	Fields        [][]string
	HashHeader    string
}

type Reader

type Reader interface {
	Head() Head
	Next() (File, error)
}

func New

func New(rdr io.Reader, path string) (Reader, error)

Jump to

Keyboard shortcuts

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