config

package
v0.1.0-Muttley Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvertMap

func InvertMap(hashMap map[string][]string) map[string]string

invertMap inverts a hash-to-paths map into a path-to-hash map. Each path in the input hashMap's slice becomes a key in the output map, with its corresponding hash as the value. If a path appears multiple times (unexpected), the last hash is used.

func LoadMap

func LoadMap() (map[string][]string, error)

loadMap reads the map from ~/.duplito/filemap.gob if it exists. Returns an empty map if the file or folder doesn't exist.

func SaveMap

func SaveMap(filemap map[string][]string) error

saveMap saves the map to ~/.duplito/filemap.gob, creating the folder if needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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