Documentation
¶
Overview ¶
Package txtarutil provides utility functions for the txtar trivial text-based file archive format.
The functions provided by the package allow easy reading and writing of txtar archive contents from/to disk.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromFS ¶
FromFS walks the filesystem tree at root, adding any files and their contents into a txtar.Archive.
func ToDir
deprecated
ToDir writes the files specified in the archive to directory at root path. Directories are created if needed. Existing files may get overwritten. Checks file names using filepath.IsLocal, returning an error if not passed.
Deprecated: Go1.23 adds os.CopyFS, usable with txtar.FS to similar effect.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.