1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-12-22 00:36:41 +02:00
crud_generator/pkg/utils/results.go

26 lines
414 B
Go
Raw Normal View History

2023-10-24 17:03:04 +02:00
package utils
import (
"bytes"
"fmt"
)
// Results specifies results of the copy.
type Results struct {
FilesCopied int
DirsCopied int
SymLinksCreated int
Info bytes.Buffer
}
func (c *Results) String() string {
return fmt.Sprintf(`Results
FilesCopied : %d
DirsCopied : %d
SymLinksCreated : %d
%s
`, c.FilesCopied, c.DirsCopied, c.SymLinksCreated, string(c.Info.Bytes()))
}