package cron import ( "errors" "log" "time" ) func JobMonthlyBookingReport() error { now := time.Now() log.Println("Start Monthly Booking Report job at:", now) //err := booking.NewService().BuildReport("monthly", int(now.Month()), now.Year()) err := errors.New("test") log.Printf("Executed Monthly Booking Report job at %v with errors: %s:", time.Now().Format(time.DateTime), err) return err }