From 0b505f5e8da838904de8b982b39293b1883b14a9 Mon Sep 17 00:00:00 2001 From: Jonas Tranberg Date: Thu, 22 Dec 2022 18:53:46 +0100 Subject: [PATCH] fix readme example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 76226c5..f953433 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ func main() { task := boomerang.NewTask( "greeter", "some-unique-id", - "Hello!", + []byte("Hello!"), ) // Schedule task for execution every second starting from now @@ -39,7 +39,7 @@ func main() { } sch.On(ctx, "greeter", func(ctx context.Context, task *boomerang.Task) { - fmt.Println(task.Data) + fmt.Printf("%s\n", task.Data) }) } ```