Versions in this module Expand all Collapse all v0 v0.0.1 Nov 1, 2023 Changes in this version + type Source struct + var EtcHosts *Source = NewSource("", nil) + func NewSource(hostsFilePath string, fs afero.Fs) *Source + func (src *Source) Apply(handler func(path string, fs afero.Fs) error) error + func (src *Source) Load() (*dom.Document, error) + func (src *Source) Path() string + func (src *Source) Save(doc *dom.Document, fm dom.FmtMode) error