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
Nikitin Aleksandr a6ea64ee3e новый
2023-10-24 18:03:04 +03:00

26 lines
414 B
Go

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()))
}