func printBody(entry *cdc.Entry) { body, err := entry.Body() if err != nil { log.Fatal(err) } defer body.Close() io.Copy(os.Stdout, body) }