filesnap

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(src map[string]Snapshot) map[string]Snapshot

Clone returns an independent copy of the supplied snapshot map.

func Equal

func Equal(left, right map[string]Snapshot) bool

Equal reports whether both snapshot maps contain the same keys and metadata.

Types

type Snapshot

type Snapshot struct {
	ModTime time.Time
	Size    int64
}

Snapshot records the filesystem metadata used to detect staleness.

func FromPath

func FromPath(path string) (Snapshot, error)

FromPath snapshots one filesystem path with os.Stat metadata.

Jump to

Keyboard shortcuts

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