archive: fix up documentation for AddItems

This commit is contained in:
Clayton Craft
2023-03-19 22:46:44 -07:00
parent a15a3ad781
commit 8fac3004a6

View File

@@ -184,10 +184,11 @@ func (archive *Archive) Write(path string, mode os.FileMode) error {
return nil return nil
} }
// Adds the given items in the map to the archive. The map format is {source path:dest path}. // AddItems adds the given items in the map to the archive. The map format is
// Internally this just calls AddItem on each key,value pair in the map. // {source path:dest path}. Internally this just calls AddItem on each
func (archive *Archive) AddItems(f filelist.FileLister) error { // key,value pair in the map.
list, err := f.List() func (archive *Archive) AddItems(flister filelist.FileLister) error {
list, err := flister.List()
if err != nil { if err != nil {
return err return err
} }