package main import ( "context" "github.com/redis/go-redis/v9" "encoding/json" "fmt" "MY/webapp/data" ) func producer(ctx context.Context) { client := redis.NewClient(&redis.Options{ Addr: "127.0.0.1:6379", Password: "", DB: 0, }) _, err := client.Ping(ctx).Result() if err != nil { panic(err) } msg := data.EmailMessage{ To: "tina.recip@example.com", From: "toni.sender@example.com", Subject: "This is my first mail.", Text: fmt.Sprintf("Random number %v", 200), HTML: fmt.Sprintf("