()
| 19 | } |
| 20 | |
| 21 | func (s *Secret) String() string { |
| 22 | var string_repr strings.Builder |
| 23 | |
| 24 | fmt.Fprintf(&string_repr, "`%s` -> `%s`, with:\n\tPermissions: %s:%s, %s\n\tCreate remote directories: %t\n\tUpload at: %s", |
| 25 | s.Source, s.Destination, s.Owner.User, s.Owner.Group, s.Permissions, s.MkDirs, s.UploadAt) |
| 26 | |
| 27 | if len(s.Action) > 0 { |
| 28 | fmt.Fprintf(&string_repr, "\n\tAction: `%s`", strings.Join(s.Action, " ")) |
| 29 | } |
| 30 | |
| 31 | return string_repr.String() |
| 32 | } |
no outgoing calls
no test coverage detected