Hello, I have tested your ring buffer, and the output consisted of 5 values:
2024/04/03 07:39:49 5
2024/04/03 07:39:49 6
2024/04/03 07:39:49 7
2024/04/03 07:39:49 8
2024/04/03 07:39:49 9
However, the buffer for the channel was set to 4. Therefore, I find this response somewhat unclear.