when the reader has no more data to transfer into stream.
                  
                  
                  count, err := a.src.Read(p) // p is populated with source data
                  
                  
                  if err != nil {
                  
                  
                        return count, err
                  
                  
                  }
                  
                  
                  So program should always exit at this line, bcuz a.src.Read returns io.EOF as error!
                  
                  
                  So what's the problem?
                  
                  
                
strings.Reader will return io.EOF on next Read call
Обсуждают сегодня