Dereference *int64 BytesProcessed in S3 select example
Stats.BytesProcessed is an *int64, needs to be dereferenced before
formatting.
@@ -51,7 +51,7 @@ func ExampleS3_SelectObjectContent() {
case *RecordsEvent:
resultWriter.Write(e.Payload)
case *StatsEvent:
- fmt.Printf("Processed %d bytes\n", e.Details.BytesProcessed)
+ fmt.Printf("Processed %d bytes\n", *e.Details.BytesProcessed)
}
}
}()
