type Writer … func MakeWriter(fSys filesys.FileSystem) *Writer { … } func (w Writer) WriteIndividualFiles(dirPath string, m resmap.ResMap) error { … } func (w Writer) write(path, fName string, res *resource.Resource) error { … } func fileName(res *resource.Resource) string { … }