mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2024-12-22 00:36:41 +02:00
26 lines
414 B
Go
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()))
|
||
|
}
|