Your program's standard input (stdin) is receiving data. But you know that the first 10 bytes of this data is information about the sender. In further processing, this is completely useless. Yes, you can take the whole string and then trim the first 10 bytes, but that's inefficient. Let's try to cope with the standard features of buffered input.
In this task, it is guaranteed that at least 10 bytes of data will be received as input. Therefore, you do not need to check the range of the incoming data.
This problem uses a method that you did not study in theory. It might be interesting for you to try out the Go documentation library. You can look for the required method in the
bufio documentation.Tip: If the documentation still seems too complicated and confusing, you can look at the Discard() method