idx/idx.go
Function Read
has 7 return statements (exceeds 4 allowed). Open
Open
func Read(rdr io.Reader) (*IDX, error) {
// Read in the "magic number" which provides us with information about
// the format of the data in this IDX file.
magic := make([]byte, 4)
n, err := rdr.Read(magic)