1 2 3 4 5 6 7 8 9 10 11 12 13 14
package job import "fmt" // Job is a bareos job type Job struct { Name string Timestamp uint64 Success bool } func (job Job) String() string { return fmt.Sprintf("Job { Name: \"%s\", Timestamp: \"%d\", Success: \"%t\" }", job.Name, job.Timestamp, job.Success) }