---
name: afero
description: Use when Go code reads, writes, or walks files and must be unit-tested without touching disk. Injects afero.Fs in place of os, tests in memory with MemMapFs, layers ReadOnlyFs, CopyOnWriteFs and BasePathFs, bridges to io/fs, and covers where MemMapFs differs from a real disk. Also for a --dry-run that must not write, and for choosing between afero, io/fs with testing/fstest, and os.Root. Defers to go for filesystem code with no test seam, and to fileflow-pathologize for turning untrusted names into safe paths.
afero
SPspf13/go-skills7236 new stars in the last 7 days+6